I am using AbstractDependencyInjectionSpringContextTests for Unit testing, see section 20.2.2. Dependency Injection of test class instances, in the reference manual. Also the application context files use "file:conf/run.properties" to get the properties file for post processing with PropertyPlaceholderConfigurer. So my intent is to just do a ant test at the root of the project and have these tests run.
The problem is that the structiure of the source tree is different then the deploy structure, so the file: reference is invalid. How is this usually handled? I don't want to change the context files, that would invalidate the tests, and I don't want to change the source structure. Is the only option to 'deploy' to a target structure and then have separate ant build scripts for that purpose?


Reply With Quote