ContextConfiguration « XML « Spring Q&A





1. JUnit : my XML file location in @ContextConfiguration isn't found    stackoverflow.com

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 ...

2. @ContextConfiguration(locations=) for loading xml    forum.springsource.org

@ContextConfiguration(locations=) for loading xml I tried migration existing test into Spring TestContext Framework, so I changed my baseTest first. Previously it looked like: public abstract class BaseDaoTestCase extends AbstractJpaTests { protected ...

3. How to get @ContextConfiguration using /WEB-INF/applicationContext.xml?    forum.springsource.org

How to get @ContextConfiguration using /WEB-INF/applicationContext.xml? I'm trying to code some test in a webapp. These tests should get the context /WEB-INF/applicationContext.xml in order to use the runtime config. But I ...

4. @ContextConfiguration failed to load config.xml    forum.springsource.org

@ContextConfiguration failed to load config.xml I am not sure if this is the right place for this question. I didn't see any forum for spring.test. I am trying to load a ...