Seems that question old as world, but I still can\'t find out the solution..
I\'m trying to run simple test:
@RunWith(SpringJUnit4ClassRunner.class)
My test context file is under src\test\resources\spring folder. I managed to load the context with
@ContextConfiguration(locations={"classpath:**/test-context.xml"})
But reference (in test-context.xml) to the application-context.xml which is under src\main\resources\spring folder failed
I managed to load the application-context by creating a ClassPathXmlApplicationContext in the test class with
ClassPathXmlApplicationContext appContext=new ClassPathXmlApplicationContext(new String[]{"classpath:spring/application-context.xml","classpath:spring/model-context.xml"});
Let me know if this helps or might create any other issues.