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