I am not clear where the following code (from the comment in WICKET-1292)
would go in the test case java files included in WICKET - 1292?

Workaround by Maurice Marrink:

// continueToOriginaldestination does not work if there is no url available,
so we need to fake one here(testing only hack)

mock.setupRequestAndResponse();
WebRequestCycle cycle = mock.createRequestCycle();
String url1 = cycle.urlFor(new
BookmarkablePageRequestTarget(YOUR_PAGE_HERE.class, null)).toString();

mock.getServletRequest().setURL("/GeneralTest$1/GeneralTest$1/" + url1);
mock.processRequestCycle();

---
mock is the WicketTester.
GeneralTest$1 from the url is the classname of your application without the
package. (in my case it is an anonymous inner class hence the $1) Note that
this classname appears twice in the url.



Juergen Donnerstag wrote:
> 
> please see https://issues.apache.org/jira/browse/WICKET-1292
> 
> Juergen
> 
> On Thu, Feb 11, 2010 at 4:41 PM, rball2 <[email protected]> wrote:
>>
>> Does this fix the issue in thread "JIRA WICKET-1292 fix "?
>>
>>
>> igor.vaynberg wrote:
>>>
>>> Wicket 1.4.6 is released!
>>>
>>> This is the sixths maintenance release of 1.4.x series and brings over
>>> 40 bug fixes and improvements.
>>>
>>> tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.6/
>>>
>>> maven:
>>>
>>> <dependency>
>>>   <groupId>org.apache.wicket</groupId>
>>>   <artifactId>wicket</artifactId>
>>>   <version>1.4.6</version>
>>> </dependency>
>>>
>>> download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.6
>>>
>>> changelog:
>>> https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&sorter/order=DESC&sorter/field=priority&pid=12310561&fixfor=12314470
>>>
>>> cheers,
>>>
>>> -igor
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/wicket-1.4.6-released-tp27409211p27548293.html
>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/wicket-1.4.6-released-tp27409211p27556744.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to