Search in sources :

Example 6 with DummyApplication

use of org.apache.wicket.resource.DummyApplication in project wicket by apache.

the class CustomHomePageTest method defaultHomePage.

/**
 * Tests no custom home page. The home page is get from {@link Application#getHomePage()}
 */
@Test
public void defaultHomePage() {
    final WebApplication dummyApplication = new DummyApplication();
    final WicketTester tester = new WicketTester(dummyApplication);
    requestHomePage(tester);
    tester.assertRenderedPage(dummyApplication.getHomePage());
    tester.destroy();
}
Also used : DummyApplication(org.apache.wicket.resource.DummyApplication) WicketTester(org.apache.wicket.util.tester.WicketTester) WebApplication(org.apache.wicket.protocol.http.WebApplication) Test(org.junit.Test)

Aggregations

DummyApplication (org.apache.wicket.resource.DummyApplication)6 WicketTester (org.apache.wicket.util.tester.WicketTester)4 WebApplication (org.apache.wicket.protocol.http.WebApplication)3 Test (org.junit.Test)3 Before (org.junit.Before)2 MockHttpServletResponse (org.apache.wicket.protocol.http.mock.MockHttpServletResponse)1 MockServletContext (org.apache.wicket.protocol.http.mock.MockServletContext)1 AppendingStringBuffer (org.apache.wicket.util.string.AppendingStringBuffer)1 BaseWicketTester (org.apache.wicket.util.tester.BaseWicketTester)1