Search in sources :

Example 1 with MockInnerClassPage

use of org.apache.wicket.util.tester.MockPageParameterPage.MockInnerClassPage in project wicket by apache.

the class WicketTesterTest method constructorAndInnerPage.

/**
 * Test instance constructor and inner page class
 *
 * @throws Exception
 */
@Test
public void constructorAndInnerPage() throws Exception {
    tester.startPage(new MockInnerClassPage());
    // assertion
    tester.assertRenderedPage(MockInnerClassPage.class);
    tester.assertComponent("title", Label.class);
    tester.assertContains("Hello world!");
}
Also used : MockInnerClassPage(org.apache.wicket.util.tester.MockPageParameterPage.MockInnerClassPage) Test(org.junit.Test)

Aggregations

MockInnerClassPage (org.apache.wicket.util.tester.MockPageParameterPage.MockInnerClassPage)1 Test (org.junit.Test)1