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
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