Hello,
     I am pretty well new to wicket and I am running into a problem I was
wondering if anyone knew how to solve. I have a class which extends the
WebApplication class. I have a static get method which is outlined below
              public static MyApp get(){
                     return (MyApp) Application.get();
              }
     I then have the standard getHomePage() which returns null. In my Wicket
tester application I am trying to test what the getHomePage() for my app
returns. So when I try and construct a tester like WicketTester tester = new
WicketTester(MyApp.get()) I get the following error:
      org.apache.wicket.WicketRuntimeException there is no application
attached to the current thread.

     It seams to me that my MyApp application is null and not initialized?
My question really is how do I directly test my own WebApplication class
directly with wicket tester? For part of my tests I don't want to use the
default mock.

thank you,

-- 
Eric Reagan

Reply via email to