dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java
branchjavac
changeset 1295 5b3ae17babdf
parent 544 08ffdc3938e7
child 1345 0546c3f2a96a
     1.1 --- a/dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java	Wed Jan 23 13:18:46 2013 +0100
     1.2 +++ b/dew/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java	Mon Sep 23 00:59:14 2013 +0200
     1.3 @@ -18,15 +18,17 @@
     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.Test;
    1.11 +import org.testng.annotations.Factory;
    1.12  
    1.13  /**
    1.14   *
    1.15   * @author Jaroslav Tulach <jtulach@netbeans.org>
    1.16   */
    1.17  public class CompileTest  {
    1.18 -    @Test public void testCompile() throws IOException {
    1.19 +    @Compare public void testCompile() throws IOException {
    1.20          String html = "<html><body>"
    1.21                  + " <button id='btn'>Hello!</button>"
    1.22                  + "</body></html>";
    1.23 @@ -42,4 +44,8 @@
    1.24          assertNotNull(result.get("x/y/z/X.class"), "Class X is compiled: " + result);
    1.25          assertNotNull(result.get("x/y/z/Index.class"), "Class Index is compiled: " + result);
    1.26      }
    1.27 +    
    1.28 +    @Factory public static Object[] create() {
    1.29 +        return VMTest.create(CompileTest.class);
    1.30 +    }
    1.31  }