Description
The JavaDoc of WicketTester gives the following code example;
public void testRenderYourPage()
{
// provide page instance source for WicketTester
tester.startPage(new TestPageSource()
{
public Page getTestPage()
});
tester.assertRenderedPage(YourPage.class);
tester.assertLabel("yourMessage", "mock message");
// assert feedback messages in INFO Level
tester.assertInfoMessages(new String[]
);
}
This example seems to be invalid since neither the class TestPageSource exists nor a fitting method in WicketTester.