[
https://issues.apache.org/jira/browse/WICKET-4104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov reassigned WICKET-4104:
---------------------------------------
Assignee: Peter Ertl
There are two problems here:
1) in the test you should use: tester.getLastResponse() instead of
#getResponse(). #getResponse() will return the response that is going to be
used for the next request cycle
2) org.apache.wicket.request.Url.isAbsolute() returns false for
"http://google.com" because it expects trailing slash at the end to consider it
as absolute.
>From the javadoc I'm not sure what exactly is the purpose of this method -
>external url is also absolute, not just Url from the same context like
>"/some/thing/internal".
@Peter: afair you added the support for absolute urls in WicketTester. Can you
improve it ?
> WicketTester does not handle RedirectToUrlException
> ---------------------------------------------------
>
> Key: WICKET-4104
> URL: https://issues.apache.org/jira/browse/WICKET-4104
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.1
> Environment: java version "1.6.0_25"
> Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
> Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)
> Reporter: bernard
> Assignee: Peter Ertl
> Attachments: RedirectQuickStart.zip
>
>
> The attached quickstart is only for testing of the single class, not page
> display.
--
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