use of org.apache.wicket.util.tester.WicketTester in project the-app by devops-dojo.
the class AbstractWicketTest method initializeWicketTester.
@Before
public void initializeWicketTester() throws Exception {
initMocks(this);
ApplicationContextMock appctx = initializeApplicationContext();
TestShopApplication application = new TestShopApplication(appctx);
wicketTester = new WicketTester(application);
}
use of org.apache.wicket.util.tester.WicketTester in project sandbox by irof.
the class ListPanelTest method setUp.
@Before
public void setUp() {
tester = new WicketTester(new WicketApplication());
tester.startComponentInPage(ListPanel.class);
}
use of org.apache.wicket.util.tester.WicketTester in project sandbox by irof.
the class ButtonPanelTest method setup.
@Before
public void setup() {
tester = new WicketTester(new WicketApplication());
tester.startComponentInPage(ButtonPanel.class);
}
use of org.apache.wicket.util.tester.WicketTester in project sandbox by irof.
the class MiscPageTest method setup.
@Before
public void setup() {
tester = new WicketTester(new WicketApplication());
tester.startPage(MiscPage.class);
}
use of org.apache.wicket.util.tester.WicketTester in project wicket by apache.
the class MoreSpecificResourceMountPathTest method can_use_resource_mounted_with_parameter.
@Test
public void can_use_resource_mounted_with_parameter() {
WicketTester browser = new WicketTester(new WicketApplication());
browser.executeUrl(WicketApplication.urlFor(1L));
Assert.assertThat(browser.getLastResponseAsString(), is(equalTo("1")));
}
Aggregations