Re: NPE in FormTester.submit

2007-11-26 Thread Jason Anderson
i made a quickstart and attached it to the following issue https://issues.apache.org/jira/browse/WICKET-1187 thanks for the help On Nov 26, 2007 8:57 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Mon, 26 Nov 2007, Jason Anderson wrote: > > and the code for MockHttpServletResponse: > > > >

Re: NPE in FormTester.submit

2007-11-26 Thread Timo Rantalaiho
On Mon, 26 Nov 2007, Jason Anderson wrote: > and the code for MockHttpServletResponse: > > public void sendRedirect(String location) throws IOException > { > // If the location starts with ../ > if (location.startsWith("../")) > { >

Re: NPE in FormTester.submit

2007-11-26 Thread Jason Anderson
the form is not ajax, its pretty much a standard form with just login and password fields and an onsubmit callback to send the page back to the originally requested url or homepage much like you would find in the login page included with the wicket-auth-roles classes i'm not sure that storing the

Re: NPE in FormTester.submit

2007-11-26 Thread Timo Rantalaiho
On Mon, 26 Nov 2007, Jason Anderson wrote: > tester.startPage(HomePage.class); I'm not sure if it changes anything here, but we've typically done tester.startPage(new ITestPageSource()... instead. > from a quick peek thru the code it looks like the request cycle is > detaching the threa

NPE in FormTester.submit

2007-11-26 Thread Jason Anderson
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(Login