I thought that not all resources were cleaned up so that test cases can query the response and other things. The responsibility is on the tester to initiate a new fresh RequestCycle iiuc.
That said, it may be that we don't provide enough hooks to perform the clean up. Martijn On 7/15/07, Maurice Marrink <[EMAIL PROTECTED]> wrote: > I just noticed that running the following minimal junittest fails. > WicketTester mock=new WicketTester(); > mock.setupRequestAndResponse(); > mock.processRequestCycle(); > mock.destroy(); > assertNull(Session.get()); //actually should throw > IllegalStateException but .... > > I would expect the threadlocal Session to be gone after the request > had been processed but it is even available after the application has > been destroyed. > Or am i missing something? > > Maurice > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user