title: spring junit load application context for tests
body: <p>I've got some XML files under my WEB-INF directory:</p>
  
  <ul>
  <li>lyricsBaseApp-servlet.xml</li>
  <li>hibernate.xml</li>
  <li>dataSource.xml</li>
  <li>beans.xml</li>
  </ul>
  
  <p>the servlet xml imports other xml files:</p>
  
  <pre><code>&lt;import resource="dataSource.xml"/&gt;
  &lt;import resource="hibernate.xml"/&gt;
  &lt;import resource="beans.xml"/&gt;
  </code></pre>
  
  <p>I would like my junit4 <code>JukeboxTest</code> class to include entire spring configuration. Using default filename I have created a <code>JukeboxTest-content.xml</code> file. And finally, I do not know what to put there...</p>
  
  <p>I've tried:</p>
  
  <pre><code>&lt;import resource="/WEB-INF/dataSource.xml"/&gt;
  &lt;import resource="/WEB-INF/hibernate.xml"/&gt;
  &lt;import resource="/WEB-INF/beans.xml"/&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;import resource="classpath:./WEB-INF/dataSource.xml"/&gt;
  &lt;import resource="classpath:./WEB-INF/hibernate.xml"/&gt;
  &lt;import resource="classpath:./WEB-INF/beans.xml"/&gt;
  </code></pre>
  
  <p>and some other ideas but all failed. Could someone point me how to access those files and what way spring interprets those filepaths?</p>