subclass requestcycle, override onrequesttargetset (may only be in
1.4) and set some flag when you see the redirect, or add it to some
list you have visibility into.

-igor

On Mon, May 25, 2009 at 8:32 AM, Jörn Zaefferer
<[email protected]> wrote:
> Hi,
>
> in one of my Wicket unit tests I'd like to assert that after a
> successful submit, a RedirectRequestTarget was set. Its not even
> necessary to check the exact URL of that redirect, just that it
> happens.
>
> I can't find any support for that via WicketTester, and
> RequestCycle.get().getRequestTarget() (or accessed via
> tester.getLastRenderedPage().getRequestCycle().getRequestTarget())
> returns null.
>
> Any ideas?
>
> Regards
> Jörn Zaefferer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to