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 alecs...@gmail.com:
The problem was that the test case was creating AnnotApplicationContextMock
before creating the WebApplication itself. The following code
I just upgraded from Wicket 1.4.2 to Wicket 1.4.5 and started receiving the
following exceptions from my Unit test.
Is this a known issue or do I need to change my test?
Thanks.
org.apache.wicket.WicketRuntimeException: *There is no application attached
to current thread main*
at
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() {