title: The import org.junit cannot be resolved
body: <p>I need to solve a Java problem for an interview, and they have sent me the test class. It starts with</p>
  <pre><code>import org.junit.Before;
  </code></pre>
  <p>and also has the following syntax at places:</p>
  <pre><code>@RunWith(JUnit4.class)
  ...
  @Before
  ...
  @Test
  </code></pre>
  <p>I haven't used Java for a while, so this confuses me a little. I downloaded eclipse and when I tried to compile this test file, there are errors at the import and at the '@' signs. The import error throws:</p>
  <pre><code>The import org.junit cannot be resolved.
  </code></pre>
  <p>And the @RunWith is not even recognized, as it tries to resolve it to a type.</p>