My question is related with the following problem:
My userManager is dependent on the bean organisationManager which I created
according to the tutorial. Thus it is defined in applicationContext.xml.
Thats why UserExistsException fails: bean with name organisationManager
cant be found. I dont know how to add applicationContext.xml in
UserExistsExceptionsTest to
return new String[] { "/applicationContext-service.xml",
"/applicationContext-resources.xml",
"classpath:/applicationContext-dao.xml" };
and I dont know wether this will solve my issue.
Related to this is the failure of UserSecurityAdviceTest...
Anyone can give me an advice how make my tests run?
Thanks a lot
René
PS: For similar reasons I moved my userManager bean definition form
applicationContext-service.xml to applicationContext.xml
-----Ursprüngliche Nachricht-----
Von: René Günther [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 5. Dezember 2007 18:43
An: [email protected]
Betreff: AW: [appfuse-user] Tests and Injections
JSF
René
-----Ursprüngliche Nachricht-----
Von: Matt Raible [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 5. Dezember 2007 18:42
An: [email protected]
Betreff: Re: [appfuse-user] Tests and Injections
Which web framework are you using? UserFormTest exists in Tapestry
and JSF.
Matt
On Dec 5, 2007, at 9:38 AM, René Günther wrote:
> In UserFormTest userManager is set via Method super.onSetUp()
> In UserExistsExceptionTest it is different, seems it is related to
> getConfigLocations()?
> In UserSecurityAdviceTest applicationContext-test.xml is read
> directly.
>
> Can you tell me why it is done in three different ways? Why
> super.onSetUp()
> doesnt work for all tests?
>
> Thanks
> René
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]