Maybe someone is interested in a solution (or better: a dirty hack) for the problem.
When the new PageTester is created with new PageTester("org.example.myapp", "Spring"); a new instance of SpringObjectProvider is created via SpringModule. The SpringObjectProvider is responsible for getting Spring beans. For that it creates a new ApplicationContext. That is of cause a different ApplicationContext than the one used in the test. The dirty hack is to make the field "context" in SpringObjectProvider static public static ApplicationContext context; and set it from the text class before creating the PageTester: SpringObjectProvider.context = this.applicationContext; new PageTester("org.example.myapp", "Spring"); Jesper -- Jesper Zedlitz Dept. for Computer Science, CAU of Kiel Room 1108 Communication Systems Research Group Phone: +49-(0)431-880-7279 Christian-Albrechts-Platz 4 Fax: +49-(0)431-880-7615 24098 Kiel - Germany [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]