Re: How to add cookies to WicketTester?

2008-12-01 Thread Peter Gardfjell
Thanks Vit, your approach seems to be working. That is, use something like Cookie cookie = new Cookie(name, value); WicketTester wicketTester = new WicketTester(new MyApplication()); wicketTester.getServletRequest().addCookie(cookie);

Re: How to add cookies to WicketTester?

2008-11-28 Thread Vit Rozkovec
Hallo, I think it should work with one of those methods: public final Page startPage(final ITestPageSource testPageSource) public final Page startPage(final Page page) instead of wicketTester.startPage(FooPage.class); and also you should use wicket tester's request for adding cookies:

Re: How to add cookies to WicketTester?

2008-11-28 Thread Marcus Mattila
Please note this bug in WicketTester cookie handling https://issues.apache.org/jira/browse/WICKET-1886 -Marcus On Fri, Nov 28, 2008 at 2:30 PM, Vit Rozkovec [EMAIL PROTECTED] wrote: Hallo, I think it should work with one of those methods: public final Page startPage(final ITestPageSource