Per Newgro wrote:
you always get the same page, unless you send it again.
I think you have to use a WebRequestCycle to achieve your goal.
See this thread
http://www.nabble.com/WicketTester---reload-page-after-model-changed-tf4691262.html#a13422228

Thanks for your response. I think I've found the problem: session.cleanupFeedbackMessages() is not being called in the test context as RequestCycle#automaticallyClearFeedbackMessages is set to false. Perhaps the call to cleanupFeedbackMessages should be in FormTester#submit().

To fix the problem I added tester.getWicketSession().cleanupFeedbackMessages() to my test method after asserting on the messages.

Kind regards
Neil



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to