You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by walnutmon <ju...@gmail.com> on 2009/01/02 18:05:13 UTC

Testing Parameters Being Sent

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org