title: Spring JUnit ContextConfiguration class path resource cannot be opened
body: <p>I am using the latest version of Spring-Boot (spring boot starter web and test), in a gradle project. And this older unit test I use to have is no longer working.</p>
  
  <p>The XML context file is located under src/test/resources/myTestContext.xml. But I get the error below when I try to run this as a Junit test in Eclipse (mars 4.5)</p>
  
  <pre><code>@ContextConfiguration(locations={"/myTestContext.xml"})
  public class MyTest extends AbstractJUnit4SpringContextTests{
  ....
  
  
  Caused by: java.io.FileNotFoundException: class path resource [myTestContext.xml] 
  cannot be opened because it does not exist at     
  org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172) ~[spring-core-4.1.7.RELEASE.jar:4.1.7.RELEASE]
  </code></pre>