Am i doing something wrong here? i couldn't find much docs on testing besides the javadoc and a page on the wiki...
tester = new WicketTester(new MyApplication()); public void testLogin() throws Exception { tester.startPage(HomePage.class); tester.assertRenderedPage(LoginPage.class); FormTester form = tester.newFormTester("form"); form.setValue("username", "******"); form.setValue("password, "******"); form.submit(); tester.assertRenderedPage(HomePage.class); } this gives the following exception: java.lang.NullPointerException at org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(MockHttpServletResponse.java:534) at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232) at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:386) at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588) (wicket 1.3.0-rc1) from a quick peek thru the code it looks like the request cycle is detaching the threadlocal before the response uses it in close() --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]