title: In Eclipse, Junit is not picking up files from src/test/resources folder.
body: <p>I have a java, gradle project. My Junit </p>
  
  <pre><code>src/test/java/hello/TestHelloWorld.java 
  </code></pre>
  
  <p>picks some configurations from </p>
  
  <pre><code>src/test/resources/testdata0010.csv 
  </code></pre>
  
  <p>the code in Junit to pick this file is </p>
  
  <pre><code>    URL url = this.getClass().getResource("/testdata0010.csv");
      File testWsdl = new File(url.getFile());
  </code></pre>
  
  <p>When I run </p>
  
  <pre><code>gradle test 
  </code></pre>
  
  <p>this works alright. The Junit is able to pick data from the csv file.</p>
  
  <p>When I run the Junit in Eclipse, i.e. by Shift+Alt+X T, then the Junit breaks with a null pointer exception. </p>
  
  <p>I understand the reason. When I run Junit inside eclipse, it looks for the file in the same folder, does not find it and fails. However, when I run the test using gradle, the csv file is already available in classpath and hence the Junit finds it. </p>
  
  <p>I am looking for some way to have Junit work from within Eclipse. </p>