title: Where should I put my properties file for tests?
body: <p>I have a properties file that I currently have in this folder:</p>
  
  <pre><code>/src/webapp/WEB-INF/classes/my.properties
  </code></pre>
  
  <p>I am loading it using:</p>
  
  <pre><code>ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
  InputStream is = classLoader.getResourceAsStream("/my.properties");
  
  Properties props = new Properties();
  
  try {
      props.load(is);
  } catch (IOException e) {
      e.printStackTrace(); 
  }
  
  String test = props.getProperty("test");
  </code></pre>
  
  <p>Now this works fine in my Spring mvc application.</p>
  
  <p>But when I created a test for this, it fails and I am assuming because the way the application loads it is not using web-inf/classes since it is just a class and not a spring web app.</p>
  
  <p><strong>So where do I put my properties file so that when my junit tests run, the properties file is picked up?</strong></p>
  
  <p>Also, for my web app, what other folders are in the default class path other than /web-inf/classes ?</p>