ko-archetype/src/main/resources/archetype-resources/src/test/java/IntegrationTest.java
Moving archetype tests into separate module - at that moment it is possible to use the previously generated archetype
3 import org.apidesign.bck2brwsr.vmtest.BrwsrTest;
4 import org.apidesign.bck2brwsr.vmtest.HtmlFragment;
5 import org.apidesign.bck2brwsr.vmtest.VMTest;
6 import org.testng.annotations.Factory;
8 /** Sometimes it is useful to run tests inside of the real browser.
9 * To do that just annotate your method with {@link org.apidesign.bck2brwsr.vmtest.BrwsrTest}
10 * and that is it. If your code references elements on the HTML page,
11 * you can pass in an {@link org.apidesign.bck2brwsr.vmtest.HtmlFragment} which
12 * will be made available on the page before your test starts.
14 public class IntegrationTest {
16 /** Write to testing code here. Use <code>assert</code> (but not TestNG's
17 * Assert, as TestNG is not compiled with target 1.6 yet).
20 "<h1>Put this snippet on the HTML page</h1>\n"
23 public void runThisTestInABrowser() {
27 public static Object[] create() {
28 return VMTest.create(IntegrationTest.class);