I just get another exception from the unit test, this is kind of strangle that complaint about No RequestCycle available:
wicket.WicketRuntimeException: Can not set the attribute. No RequestCycle available at wicket.Session.setAttribute(Session.java:933) at wicket.PageMap.put(PageMap.java:526) at wicket.Session.touch(Session.java:744) at wicket.util.tester.WicketTester.startPage(WicketTester.java:262) However, just before I call startPage I add Assert.assertNotNull(RequestCycle.get()) and it is passed, and this only occur for one test cases I have, just wonder when will RequestCycle.detach() being called so RequestCycle.current begin set to null? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user