Hi *, i would like to test behavior of my page. In constructor there is a redirect if page parameter not set. But the redirect target is a url and not a wicket page instance. What is the best attribute to add my assertion to?
MyPage(PageParams p) { if (p.get("xyz") == null) { redirectTo("http://www.myurl.ch"); } add(new Label("Rendered"); } void redirectTo(String url) { getRequestCycle().setRedirect(true); getRequestCycle().setRequestTarget(new RedirectRequestTarget(url)); } lastRenderedPage is null so i can't add my assertion to this. Cheers Per -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org