use of org.apache.wicket.util.tester.WicketTester in project wicket by apache.
the class RepeaterTest method allRepeaterPages.
/**
* Test page.
*/
@Test
public void allRepeaterPages() {
WicketTester tester = new WicketTester(new RepeaterApplication());
try {
tester.startPage(Index.class);
tester.assertContains("Wicket Examples - repeater views");
checkPage(tester, RepeatingPage.class);
checkPage(tester, RefreshingPage.class);
checkPage(tester, FormPage.class);
checkPage(tester, SimplePage.class);
checkPage(tester, PagingPage.class);
checkPage(tester, SortingPage.class);
checkPage(tester, OIRPage.class);
checkPage(tester, DataGridPage.class);
checkPage(tester, GridViewPage.class);
checkPage(tester, AjaxDataTablePage.class);
} finally {
tester.destroy();
}
}
use of org.apache.wicket.util.tester.WicketTester in project wicket by apache.
the class WebSocketTesterResourceTest method before.
@Before
public void before() {
TestWebSocketResource.ON_CONNECT_CALLED.set(false);
TestWebSocketResource.ON_CLOSE_CALLED.set(false);
ON_OUT_BINARY_CALLED.set(false);
ON_OUT_TEXT_CALLED.set(false);
WebApplication application = new MockApplication() {
@Override
protected void init() {
super.init();
getSharedResources().add(TestWebSocketResource.TEXT, new TestWebSocketResource(EXPECTED_TEXT));
getSharedResources().add(TestWebSocketResource.BINARY, new TestWebSocketResource(EXPECTED_BINARY, EXPECTED_OFFSET, EXPECTED_LENGTH));
}
};
tester = new WicketTester(application);
}
use of org.apache.wicket.util.tester.WicketTester in project midpoint by Evolveum.
the class PageLoginTest method test001BasicRender.
@Test
public void test001BasicRender() {
WicketTester tester = new WicketTester();
PageLogin page = tester.startPage(PageLogin.class);
tester.assertRenderedPage(PageUser.class);
}
use of org.apache.wicket.util.tester.WicketTester in project gitblit by gitblit.
the class MarkupProcessorTest method setUp.
@Before
public void setUp() {
IRuntimeManager rm = new MockRuntimeManager(getSettings());
gbctx = new MockGitblitContext();
gbctx.addManager(rm);
tester = new WicketTester(new GitBlitWebApp(null, null, rm, getPluginManager(), null, null, null, null, null, null, null, null, null));
}
Aggregations