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 alecs...@gmail.com: The problem was that the test case was creating AnnotApplicationContextMock before creating the WebApplication itself. The following code

Is AnnotApplicationContextMock() broken in Wicket 1.4.5?

2009-12-28 Thread Alec Swan
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

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() {