Enough to run the test in JDK for now
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 07 Oct 2013 13:37:16 +0200
changeset 13450546c3f2a96a
parent 1344 bb1e59f5cff3
child 1346 511e4f7352d6
Enough to run the test in JDK for now
dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java
     1.1 --- a/dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java	Sat Oct 05 07:23:48 2013 +0200
     1.2 +++ b/dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java	Mon Oct 07 13:37:16 2013 +0200
     1.3 @@ -18,17 +18,15 @@
     1.4  package org.apidesign.bck2brwsr.dew;
     1.5  
     1.6  import java.io.IOException;
     1.7 -import org.apidesign.bck2brwsr.vmtest.Compare;
     1.8 -import org.apidesign.bck2brwsr.vmtest.VMTest;
     1.9  import static org.testng.Assert.*;
    1.10 -import org.testng.annotations.Factory;
    1.11 +import org.testng.annotations.Test;
    1.12  
    1.13  /**
    1.14   *
    1.15   * @author Jaroslav Tulach <jtulach@netbeans.org>
    1.16   */
    1.17  public class CompileTest  {
    1.18 -    @Compare public void testCompile() throws IOException {
    1.19 +    @Test public void testCompile() throws IOException {
    1.20          String html = "<html><body>"
    1.21                  + " <button id='btn'>Hello!</button>"
    1.22                  + "</body></html>";
    1.23 @@ -40,12 +38,16 @@
    1.24              + "   @On(event=CLICK, id=\"btn\") static void clcs() {}"
    1.25              + "}";
    1.26          Compile result = Compile.create(html, java);
    1.27 -
    1.28 -        assertNotNull(result.get("x/y/z/X.class"), "Class X is compiled: " + result);
    1.29 +        
    1.30 +        final byte[] arrX = result.get("x/y/z/X.class");
    1.31 +        assertNotNull(arrX, "Class X is compiled: " + result);
    1.32          assertNotNull(result.get("x/y/z/Index.class"), "Class Index is compiled: " + result);
    1.33 +        
    1.34 +//        return Arrays.toString(arrX);
    1.35      }
    1.36 -    
    1.37 +    /*
    1.38      @Factory public static Object[] create() {
    1.39          return VMTest.create(CompileTest.class);
    1.40      }
    1.41 +    */
    1.42  }