I need to solve a java problem for an interview, and they have sent me the test class. It starts with
import org.junit.Before;
and also has the following syntax at places:
@RunWith(JUnit4.class)
...
@Before
...
@Test
I haven't used Java in a while so this confuses me a little. I downloaded eclipse and when I try to compile this test file there's errors at the import and at the @ signs. The import error throws:
The import org.junit cannot be resolved.
And the @RunWith is not even recognized because it tries to resolve it to a type.
See Question&Answers more detail:os