This is a known issue. For now you have to copy the init code. MockWebApplication and WicketTester must be re-structured to delegate instead of derive from Application. You are more than welcome to provide a patch which fixes the problem.
regards Juergen On 10/9/06, Jan Willem Janssen <[EMAIL PROTECTED]> wrote: > Hi, > > For our Wicket app., we have some initialisation code in our WebApp class. > When > writing JUnits, Wicket cannot use the same initialisation code, since > MockWebApplication (and WicketTester) directly inherits from WebApplication. > > What we could do, is create custom a WicketTester and MockWebApplication which > inherit either directly from our WebApp class, or create an addition > constructor > in MockWebApplication which allows a WebApplication-instance as additional > parameter whose init() method is called at the right moment, or ... > > However, I was wondering if nobody else has the same problem, or did I miss > something? > > Regards, > > -- > > Jan Willem Janssen, M.Sc. > software engineer, Development > ______________________________ > > Planon B.V. > Wijchenseweg 8 > 6537 TL Nijmegen > P.O. Box 38074 > 6503 AB Nijmegen > The Netherlands > T: +31 (0) 24 648 7662 > F: +31 (0) 24 642 2942 > E: [EMAIL PROTECTED] > W: www.planon-fm.com > > Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde > ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke > informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, > bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u > niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en > kopieën onmiddellijk en informeer de afzender. > > This e-mail and any attachment is for authorised use by the intended > recipient(s) only. It may contain proprietary material, confidential > information and/or be subject to legal privilege. It should not be copied, > disclosed to, retained or used by, any other party. If you are not an > intended recipient then please promptly delete this e-mail and any attachment > and all copies and inform the sender. > > ------------------------------------------------------------------------- > 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 > ------------------------------------------------------------------------- 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