spring - @ContextConfiguration fail to load config file in src/test/resources
        Posted  
        
            by robinmag
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by robinmag
        
        
        
        Published on 2010-04-09T03:05:01Z
        Indexed on 
            2010/04/09
            3:13 UTC
        
        
        Read the original article
        Hit count: 414
        
Hi,
I've tried to load the spring config file in src/test/resources classpath with the following abstract class:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:/applicationContext.xml"})
public class BaseIntegrationTests {
}
I have the applicationContext.xml file in src/test/resources but spring cant load it.
Thank you.
© Stack Overflow or respective owner