You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Svante Reutland <sv...@hotmail.com> on 2010/03/31 13:33:28 UTC
Wicket Tester
Hi!im trying to run wicket tester on my application. but I cannot get it to work.this is what I have done so far:
WicketTester tester = new WicketTester(); tester.startPage(Login.class); FormTester formTester = tester.newFormTester("loginForm"); formTester.setValue("username", "admin"); formTester.setValue("password", "password"); formTester.submit();
and it gives me an error: cant instantiate constructor and " org.apache.wicket.protocol.http.WebSession cannot be cast to se.project.ui.MySession"
anyone have any experience with Wicket tester?
Best RegardsSvante
_________________________________________________________________
Mejla på krogen! Hotmail i mobilen.
http://new.windowslivemobile.msn.com/SE-SE/windows-live-hotmail/default.aspx
Re: Wicket Tester
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!
You must create wickettester with your application.
wickettester = new WicketTester(new MyApplication());
2010/3/31 Svante Reutland <sv...@hotmail.com>:
>
> Hi!im trying to run wicket tester on my application. but I cannot get it to work.this is what I have done so far:
> WicketTester tester = new WicketTester(); tester.startPage(Login.class); FormTester formTester = tester.newFormTester("loginForm"); formTester.setValue("username", "admin"); formTester.setValue("password", "password"); formTester.submit();
> and it gives me an error: cant instantiate constructor and " org.apache.wicket.protocol.http.WebSession cannot be cast to se.project.ui.MySession"
> anyone have any experience with Wicket tester?
> Best RegardsSvante
> _________________________________________________________________
> Mejla på krogen! Hotmail i mobilen.
> http://new.windowslivemobile.msn.com/SE-SE/windows-live-hotmail/default.aspx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket Tester
Posted by svantepower <sv...@hotmail.com>.
lol why didnt I see that.
must be the lack of coffe ;)
Thanks for your help!
--
View this message in context: http://old.nabble.com/Wicket-Tester-tp28094649p28094705.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org