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 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:
The import org.junit cannot be resolved.
And the @RunWith is not even recognized, as it tries to resolve it to a type.