The test does use manual wiring:

<quote>
        action = new PersonAction();
        GenericManager personManager = (GenericManager)
applicationContext.getBean("personManager");
        action.setPersonManager(personManager);
</quote>

Matt

On 8/20/07, Derek Broughton <[EMAIL PROTECTED]> wrote:
> Matt Raible wrote:
>
> > Yes, you are correct in that you have to manually wire your actions in
> > your test cases. One solution to this problem may be extending
> > StrutsTestCase instead of BaseActionTestCase.
>
> Oh no!  I'll give that a try, but the
> http://www.appfuse.org/display/APF/Using+Struts+2 page specifically
> describes using Struts zero configuration, and provides code for everything
> _except_ defining the bean.  It would really help if the example was
> corrected to either use StrutsTestCase or manual wiring.
>
> Thanks.
> --
> derek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

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

Reply via email to