The Spring injection is setup properly, for functional use and unit testing. 
The issue is, is that I should not have to worry about setting up page B
dependencies when I'm testing page A.  I should only have to worry about
that dependency when it comes to actually testing page B.

-Craig


Jean-Baptiste Quenot-3 wrote:
> 
> * Craig Lenzen:
> 
>> I'm looking for some feedback as to an issue I'm having with the
>> WicketTester.  To start  I'd like  to point  out that  I'm using
>> Spring and injecting my pages / components via the wicket spring
>> project's component injector.
>>
>> Here is the situation, I have page  A that has a link to page B.
>> In the test of page A I test that the click in fact goes to page
>> B. This is fine  but the problem is, is that page  B relies on a
>> Spring service  during its  construction and  the fact  that the
>> WicketTester actually  tries to  render page  B which  calls the
>> service.
> 
> And   is  the   service   properly  injected   by  the   component
> instantiation listener? Have you setup Spring for your tests?
> -- 
>      Jean-Baptiste Quenot
> aka  John Banana   Qwerty
> http://caraldi.com/jbq/
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WicketTester-and-mocking-up-next-page-rendered.-tf4093923.html#a11649825
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to