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-29 Thread kamiseq
sorry not yet, december turned out to be very busy for me ;/ I hope to reproduce all errors I had with simple maven startup project. I ll post something as soon as possible. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __

Re: unit testing cookies after redirect

2011-12-19 Thread Piotr Hołubowicz
) http://docs.oracle.com/javaee/6/api/javax/servlet/http/Cookie.html#setValue(java.lang.String) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/unit-testing-cookies-after-redirect-tp3995764p4214036.html Sent from the Users forum mailing list archive at Nabble.com

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

unit testing cookies after redirect

2011-11-06 Thread kamiseq
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 description: I have a page ValidationPage that accepts request, checks