# HG changeset patch # User Jaroslav Tulach # Date 1381145836 -7200 # Node ID 0546c3f2a96a0427a819e3e6423090c85738679e # Parent bb1e59f5cff3b9a142a4c38638e1b24df840d650 Enough to run the test in JDK for now diff -r bb1e59f5cff3 -r 0546c3f2a96a dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java --- a/dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java Sat Oct 05 07:23:48 2013 +0200 +++ b/dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java Mon Oct 07 13:37:16 2013 +0200 @@ -18,17 +18,15 @@ package org.apidesign.bck2brwsr.dew; import java.io.IOException; -import org.apidesign.bck2brwsr.vmtest.Compare; -import org.apidesign.bck2brwsr.vmtest.VMTest; import static org.testng.Assert.*; -import org.testng.annotations.Factory; +import org.testng.annotations.Test; /** * * @author Jaroslav Tulach */ public class CompileTest { - @Compare public void testCompile() throws IOException { + @Test public void testCompile() throws IOException { String html = "" + " " + ""; @@ -40,12 +38,16 @@ + " @On(event=CLICK, id=\"btn\") static void clcs() {}" + "}"; Compile result = Compile.create(html, java); - - assertNotNull(result.get("x/y/z/X.class"), "Class X is compiled: " + result); + + final byte[] arrX = result.get("x/y/z/X.class"); + assertNotNull(arrX, "Class X is compiled: " + result); assertNotNull(result.get("x/y/z/Index.class"), "Class Index is compiled: " + result); + +// return Arrays.toString(arrX); } - + /* @Factory public static Object[] create() { return VMTest.create(CompileTest.class); } + */ }