I try to setup a simple testcase with a bookmarkablepage and get the following exception about the serialization.
INFO - Application - [WicketTester$1] init: Wicket extensions initializer INFO - Application - [WicketTester$1] init: Wicket core library initializer INFO - Application - [WicketTester$1] init: Wicket JMX initializer INFO - Initializer - registering Wicket mbeans with server [EMAIL PROTECTED] INFO - WebApplication - [WicketTester$1] Started Wicket in development mode ERROR - Objects - Error serializing object class wicket.util.tester.DummyHomePage [object=[Page class = wicket.util.tester.DummyHomePage, id = 0, version = 0]] wicket.util.io.WicketSerializeableException: No serializeable constructor found for class wicket.protocol.http.MockHttpServletRequest wicket.util.tester.DummyHomePage->testPageSource->se.curalia.ekn.page.project.ProjectLeadAddsComment$1->this$0->se.curalia.ekn.page.project.ProjectLeadAddsComment->tester->wicket.util.tester.WicketTester->servletRequest NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application The testing code: .... AnnotApplicationContextMock appctx = new AnnotApplicationContextMock(); appctx.putBean("commentDAO", commentDAO); appctx.putBean("projectDAO", projectDAO); this.tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(this.tester.getApplication(), appctx)); tester.startPage(new ITestPageSource() { public Page getTestPage() { PageParameters params = new PageParameters(); params.add("id", "1"); return new Diary(params); } }); I'm using incubator-1.3.0 rev 520893 from about two weeks back. /regards Mats ------------------------------------------------------------------------- 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