Hello, As I was mentioning in a [1]previous post, I managed to rewrite WicketTester so that it takes a WebApplication in the constructor.
Example: WebApplication fooBarApp = new FooBarApplication(); WebApplicationTester tester = new WebApplicationTester(fooBarApp); tester.startHomePage(); tester.assertRenderedPage(IndexPage.class); tester.startPage(NewProduct.class); ... In order to accommodate this API change in Wicket, I propose: In Wicket 2.0: * Remove WicketTester, MockWebApplication and old FormTester * add the new WebApplicationTester and new FormTester In Wicket 1.x: * Deprecate WicketTester, FormTester and MockWebApplication and cease to maintain them * add the new WebApplicationTester and FormTester The main code change is about startPage(), as it was relying on Application.setHomePage(), which does not exist in a real Application. Therefore I created a request to a bookmarkable page. The change also requires a slight modification in WicketServlet, to allow the application to be set before calling init(). Before providing the new tester to the users, unit tests should be written in order to prevent regressions. Apparently there is also the need to integrate the TagTester cleanly into the testing API, as mentioned by Ingram Chen. I'd be willing to maintain the Wicket testing framework if you wish and write the unit tests myself. In between the patch is always available in the tracker: http://sourceforge.net/tracker/index.php?func=detail&aid=1547935&group_id=119783&atid=684977 Thanks in advance, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ [1] http://www.nabble.com/WicketTester-and-AuthenticatedWebApplication-tf2144940.html#a6021079 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop