1.1 --- a/launcher/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java Tue Jan 15 22:48:17 2013 +0100
1.2 +++ b/launcher/src/test/java/org/apidesign/bck2brwsr/dew/CompileTest.java Wed Jan 16 10:52:06 2013 +0100
1.3 @@ -19,10 +19,14 @@
1.4 + " <button id='btn'>Hello!</button>"
1.5 + "</body></html>";
1.6 String java = "package x.y.z;"
1.7 - + "class X {"
1.8 - + "}";
1.9 + + "import org.apidesign.bck2brwsr.htmlpage.api.*;"
1.10 + + "@Page(xhtml=\"index.html\", className=\"Index\")"
1.11 + + "class X { "
1.12 + + " @OnClick(id=\"btn\") static void clcs() {}"
1.13 + + "}";
1.14 Map<String,byte[]> result = Compile.compile(html, java);
1.15
1.16 assertNotNull(result.get("x/y/z/X.class"), "Class X is compiled: " + result);
1.17 + assertNotNull(result.get("x/y/z/Index.class"), "Class Index is compiled: " + result);
1.18 }
1.19 }