[
https://issues.apache.org/jira/browse/WICKET-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801352#action_12801352
]
Martin Grigorov commented on WICKET-2502:
-----------------------------------------
Would you please explain more about the page flow in the test case.
As far as I understand it is:
1) Go to LoginPage
2) throw RestartResponsePage(PendingPage.class)
3) throw RestartResponsePage(MainPage.class)
4) WicketAuthorizationStrategy#onUnauthorizedInstantiation(mainPageInstance)
throws RestartResponseAtInterceptPageException(LoginPage.class) because
WicketSession#isLoggedIn() returns false
5) Wicket requests a redirect (302) but since this is not executed in a real
web server this is no-op
6) later Wicket tries to get the "lastRenderedPage" but this again fails at the
instantiation of LoginPage and the test fails with RestartResponseException in
LoginPage's constructor
> WicketTester cannot handle consecutive RestartResponseException's
> -----------------------------------------------------------------
>
> Key: WICKET-2502
> URL: https://issues.apache.org/jira/browse/WICKET-2502
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC7
> Reporter: Martin Makundi
> Priority: Minor
> Attachments: Wicket-Quickstart.zip
>
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> See attached quickstart junit test. WicketTester "crashes" (seizes from
> running the tests) if there eare consecutive RestartResponseException's.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.