Any beans you create in your project should be added to applicationContext.xml. If you create other files, you will need to override the getConfigLocations() method and web.xml.
Matt On 12/5/07, René Günther <[EMAIL PROTECTED]> wrote: > 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. > That's why UserExistsException fails: bean with name organisationManager > cant be found. I don't know how to add applicationContext.xml in > UserExistsExceptionsTest to > > return new String[] { "/applicationContext-service.xml", > "/applicationContext-resources.xml", > "classpath:/applicationContext-dao.xml" }; > > and I don't 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: users@appfuse.dev.java.net > 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: users@appfuse.dev.java.net > 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() > > doesn't 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] > >