Re: SOLVED: Is AnnotApplicationContextMock() broken in Wicket 1.4.5? @l

2009-12-30 Thread Murat YĆ¼cel
It doesnt work in all cases. You therefore need to set the wicket application before running the code below. /Murat 2009/12/28 Alec Swan : > The problem was that the test case was creating AnnotApplicationContextMock > before creating the WebApplication itself. The following code worked for me: >

SOLVED: Is AnnotApplicationContextMock() broken in Wicket 1.4.5? @l

2009-12-28 Thread Alec Swan
The problem was that the test case was creating AnnotApplicationContextMock before creating the WebApplication itself. The following code worked for me: MyApplication webApp = new MyApplication() { @Override public void init() { addComponentInstantia