Sarkast wrote:
> 
> 
>     protected void init() {
>         super.init();
>         mount("/pages", PackageName.forPackage(Login.class.getPackage()));
>         //  commented out for testing
> addComponentInstantiationListener(new SpringComponentInjector(this));
>     }
> 

You could do something like this:

protected void init() {
  super.init();
  mount("/pages"....)
  addSpringInitializer();
}
protected void addSpringInitializer() {
  addComponentInstantiationListener(new SpringComponentInjector(this));
}


And then in your test case do this:
WebApplication app = new HelloApplication() {
  protected void addSpringInitializer() {
    // don't do anything
   }
};



-- 
View this message in context: 
http://www.nabble.com/WicketTester-in-spring%2C-question-about-springinjection-tp16895558p16896589.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to