This is my JUnit class :
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "WEB-INF/spring-test-config.xml"}) public class TestXXXX extends TestBase { ... When I launch this test class with JUnit runner (from Eclipse), it's failed, because the file spring-test-config.xml is not found.
My project architecture is :
/src/main/com/xxx/: my source code/src/main/WEB-INF/: my config files; under this folder there isspring-test-config.xml: this file is not the final xml because it contains some tokens which replace by a Ant target. And the final result of this file is place inWebContent(deploy directory in fact) - see above./WebContent/WEB-INF/classes/com/xxx/: my binary code/WebContent/WEB-INF/spring-test-config.xml
So, how can i do to resolve this problem ?