You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Trejkaz (JIRA)" <ji...@apache.org> on 2012/06/19 01:42:42 UTC

[jira] [Commented] (WICKET-4610) WicketTester.assertRedirectUrl always fails because it always thinks the redirect was null

    [ https://issues.apache.org/jira/browse/WICKET-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396371#comment-13396371 ] 

Trejkaz commented on WICKET-4610:
---------------------------------

Additionally, tester.getLastResponse().getStatus() == 200 instead of 302. :(

                
> WicketTester.assertRedirectUrl always fails because it always thinks the redirect was null
> ------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4610
>                 URL: https://issues.apache.org/jira/browse/WICKET-4610
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.7
>            Reporter: Trejkaz
>
> I have a page which always redirects.
> When I write a test for this page, tester.assertRedirectUrl(...) always fails with the assertion failure showing that the redirect URL was null.
> The page does redirect when running the application for real and I have stepped through in the debugger when running the test and it goes all the way to the HttpServletResponse.sendRedirect call.
> However, in the same debugging session, tester.getLastResponse().getRedirectLocation() == null

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira