Hi! You must create wickettester with your application.
wickettester = new WicketTester(new MyApplication()); 2010/3/31 Svante Reutland <svantepo...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org