btw, Wicket-examples has some jwebunit tests you might want to take a look at.
Eelco On 11/1/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > If you want to test stuff that depends on such customizations, you > might be better off using e.g. jWebUnit or selenium. I don't know what > other's experiences are in this field. > > > Eelco > > > > > I am new to Wicket and am trying to write unit tests for the > > application that I am working on. I am using WicketTester and am > > following the outline given in the Pro Wicket book but ran into some > > problems. The basic problem is that we have our own session and > > application class and this complicates using the mock based objects > > (used by WicketTester) since they in turn are derived from lower level > > session and application classes. > > > > My question is, what are the recommended best practices for testing in > > this context? Is it ill-advised to extend the application and session > > classes, or is there a better way to unit test them? Also, what is > > the easiest way to use spring to do configuration in unit tests? > > > > A secondary problem that I had was that the application class in > > particular (and probably others) did a lot of configuration in the > > constructor, negating any configuration that could be done in the > > derived constructor / init function. > > > > many thanks, > > > > Chris > > > > ------------------------------------------------------------------------- > > 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-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------------------------- 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-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
