You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by kamiseq <ka...@gmail.com> on 2011/11/20 15:29:56 UTC
unit testing continueToOriginalDestination
hej,
Im a bit stuck, I tried to search something but all resources points to
older version and it seems that in 1.5 a lot ve changed.
I have a page that does its work and then continueToOriginalDestination or
it this returns false do some more stuff.
unit testing the case when it returns false was easy ;] but now I try to
figure out how to test that my code calls continueToOriginalDestination and
tries to redirect.
I tried this
http://www.mail-archive.com/users@wicket.apache.org/msg09904.html
but this was for wicket 1.3
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
Re: unit testing continueToOriginalDestination
Posted by kamiseq <ka...@gmail.com>.
again sounds like a plan ;]
ok, I will try to do that at the end of the week
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
2011/11/21 Igor Vaynberg <ig...@gmail.com>
> We can build it in...open a jira and attach a patch :)
>
> -igor
> On Nov 21, 2011 10:51 AM, "kamiseq" <ka...@gmail.com> wrote:
>
> > it sounds like a plan ;]
> >
> > I thought it will be something in wicket tester, thanks for a hint anyway
> > ;]
> >
> > pozdrawiam
> > Paweł Kamiński
> >
> > kamiseq@gmail.com
> > pkaminski.prv@gmail.com
> > ______________________
> >
>
Re: unit testing continueToOriginalDestination
Posted by Igor Vaynberg <ig...@gmail.com>.
We can build it in...open a jira and attach a patch :)
-igor
On Nov 21, 2011 10:51 AM, "kamiseq" <ka...@gmail.com> wrote:
> it sounds like a plan ;]
>
> I thought it will be something in wicket tester, thanks for a hint anyway
> ;]
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@gmail.com
> pkaminski.prv@gmail.com
> ______________________
>
Re: unit testing continueToOriginalDestination
Posted by kamiseq <ka...@gmail.com>.
it sounds like a plan ;]
I thought it will be something in wicket tester, thanks for a hint anyway ;]
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
Re: unit testing continueToOriginalDestination
Posted by Igor Vaynberg <ig...@gmail.com>.
create a special test page that throws a
RestartResponseAtInterceptPageException with the page you want to
test.
-igor
On Sun, Nov 20, 2011 at 6:29 AM, kamiseq <ka...@gmail.com> wrote:
> hej,
> Im a bit stuck, I tried to search something but all resources points to
> older version and it seems that in 1.5 a lot ve changed.
>
> I have a page that does its work and then continueToOriginalDestination or
> it this returns false do some more stuff.
> unit testing the case when it returns false was easy ;] but now I try to
> figure out how to test that my code calls continueToOriginalDestination and
> tries to redirect.
>
> I tried this
> http://www.mail-archive.com/users@wicket.apache.org/msg09904.html
>
> but this was for wicket 1.3
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@gmail.com
> pkaminski.prv@gmail.com
> ______________________
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org