Re: WicketTester: how to mock off EJB's

2007-11-17 Thread Timo Rantalaiho
On Fri, 16 Nov 2007, Andy Barlow [Deftex] wrote: I guess what I really need to do mock off the getEJBService() of MainApplication to return a mock object that serves the data to the test pages. Problem is, I'm not sure how to achieve that without initialising WicketTester with a mock

Re: WicketTester: how to mock off EJB's

2007-11-16 Thread Alex Objelean
In order to avoid ClassCastException, when constructing a new instance of WicketTester, initialize it with your MainApplication: WicketTester tester = new WicketTester(new MainApplication()); Andy Barlow [Deftex] wrote: I have an application which used Session EJB's to deliver data to