title: Problem running a test with src/main and src/test
body: <p>Newbie to Java having issue with an existing code base. </p>
  
  <p>It seems Java files in /src/code are not being picked up.</p>
  
  <p>Other devs here use IntelliJ, which runs tests fine out of the box (default config). I'm trying to use VSCode but also get the same result running via the terminal:</p>
  
  <p>Running a test gives me a "cannot find symbol" error trying to import local classes from /src/test/... If I copy the problematic file into /src/main/... that file imports fine but error reappears with the next imported file, and so on.</p>
  
  <p>Note that command clicking the 'missing' file opens its source in VSCode, so I know it's there.</p>
  
  <p>import is standard:</p>
  
  <pre class="lang-java prettyprint-override"><code>import com.foo.bar.baz.math.TestMathModelFactory;
  </code></pre>
  
  <p>File exists under:</p>
  
  <p><code>work/src/test/java/com/foo/bar/baz/math/TestMathModelFactory.java</code></p>
  
  <p>It builds if I put it under:</p>
  
  <p><code>work/src/main/java/com/foo/bar/baz/math/TestMathModelFactory.java</code></p>
  
  <p>Expect it to import, but get:</p>
  
  <pre class="lang-java prettyprint-override"><code>RTPTest.java:3: error: cannot find symbol
  import com.foo.bar.baz.math.TestMathModelFactory;
                             ^
  </code></pre>
  
  <p>I know I'm doing something stupid, but ¯\_(ツ)_/¯</p>