Re: unit testing cookies after redirect

2011-12-30 Thread kamiseq
hej, SO it seems that errors I got was because of my bad testing. I created simple test in new project and it now works. the only problem is that 1. wicket tester process request twice after startPage - the first time the page is rendered and cookies are saved into AddCookieAction. then request

Re: unit testing cookies after redirect

2011-12-30 Thread Martin Grigorov
On Fri, Dec 30, 2011 at 2:02 PM, kamiseq kami...@gmail.com wrote: hej, SO it seems that errors I got was because of my bad testing. I created simple test in new project and it now works.  the only problem is that 1. wicket tester process request twice after startPage - the first time the

Re: unit testing cookies after redirect

2011-12-19 Thread Piotr Hołubowicz
Hi, Have you verified that the cookie value is correct? In Cookie javadocs [1] it reads: With Version 0 cookies, values should not contain white space, brackets, parentheses, equals signs, commas, double quotes, slashes, question marks, at signs, colons, and semicolons. Empty values may not

Re: unit testing cookies after redirect

2011-11-21 Thread Martin Grigorov
Hi, I have also noticed that once but didn't have time to investigate it further and later I forgot about it ... Can you create a simple quickstart and attach it to Jira. On Sun, Nov 20, 2011 at 10:41 PM, kamiseq kami...@gmail.com wrote: hej, well I tried to follow the cookies in wicket

Re: unit testing cookies after redirect

2011-11-21 Thread kamiseq
ok I ll do it this week thanks pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ On 21 November 2011 09:52, Martin Grigorov mgrigo...@apache.org wrote: Hi, I have also noticed that once but didn't have time to investigate it further and later I

Re: unit testing cookies after redirect

2011-11-20 Thread kamiseq
hej, well I tried to follow the cookies in wicket tester. starting from the beginning I have page A that while constructing adds new cookie to response and throws (as Martin advised) ReplaceHandlerException pointing to page B. everything goes well and cookies are carried inside original response

Re: unit testing cookies after redirect

2011-11-09 Thread kamiseq
so if this is the last line in my code those two approaches are pretty the same pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail:

Re: unit testing cookies after redirect

2011-11-08 Thread kamiseq
ok, thanks for that. I have one small question that is bugging me for a while. What would be the difference between throwing exception or setResponsePage(pageClass);?? I ve found somewhere that I should always throw RestartException, but I see setResponsePage so many times that Im confused.

Re: unit testing cookies after redirect

2011-11-08 Thread Martin Grigorov
On Wed, Nov 9, 2011 at 12:42 AM, kamiseq kami...@gmail.com wrote: ok, thanks for that. I have one small question that is bugging me for a while. What would be the difference between throwing exception or setResponsePage(pageClass);?? I ve found somewhere that I should always throw

Re: unit testing cookies after redirect

2011-11-07 Thread Martin Grigorov
Hi, On Sun, Nov 6, 2011 at 3:53 PM, kamiseq kami...@gmail.com wrote: hej, I ve found this http://apache-wicket.1842946.n4.nabble.com/Wickettester-cookies-and-redirects-in-Wicket-1-4-15-td3250792.html but im developing on 1.5.2 and ticket is closed. I believe it is the same case. this is