Re: WicketTester - Problem submitting a form

2009-02-01 Thread Timo Rantalaiho
On Wed, 28 Jan 2009, Stephan Koch wrote: mountBookmarkablePage(/login, LoginPage.class); When I remove that line, the test runs fine. Could be a bug in WicketTester? I'd like some opinions on that before I file a JIRA issue. It could be, but you could still try replacing

Re: WicketTester - Problem submitting a form

2009-01-28 Thread Stephan Koch
Hi Per, I tried that before, still the same exception. From what I read using clickLink() on the SubmitLink or doing submit() should do the same. Per Newgro wrote: Hi Stephan Koch, i can't help you on the exception. But all i can see is that you don't call submit. FormTester

Re: WicketTester - Problem submitting a form

2009-01-28 Thread Stephan Koch
Hi all, the exception is apparently caused by mounting the LoginPage. In my Application init(), I do this: mountBookmarkablePage(/login, LoginPage.class); When I remove that line, the test runs fine. Could be a bug in WicketTester? I'd like some opinions on that before I file a JIRA issue. I'm

Re: WicketTester - Problem submitting a form

2009-01-27 Thread Per Newgro
Hi Stephan Koch, i can't help you on the exception. But all i can see is that you don't call submit. FormTester loginFormTester = tester.newFormTester(form); loginFormTester.setValue(loginName, testUser.getUsername()); loginFormTester.setValue(password, test); loginFormTester.submit(); //