All,
I have a page with a form, when the form is submitted it should redirect to
another page regardless of whether a save is successfull, however, I want
the response page to show some feedback saying that the object was saved.
The test for the form looks like this
@Test
public void testSuccessSavePassesParameter()
{
FormTester formTester = tester.newFormTester(getFormPath());
fillOutForm(formTester);
formTester.submit();
tester.assertRenderedPage(WebUserManagementPage.class);
assertNotNull(tester.getLastRenderedPage().getPageParameters());
}
This fails. From the pages constructor I did a system out of the page
parameters, and it prints what I expect. Is this a WicketTester issue?
--
View this message in context:
http://www.nabble.com/Testing-Parameters-Being-Sent-tp21254066p21254066.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]