I have this problem that I cannot understand why it doesn't exist.
Basically, when I compile the following command:
C:\Users\Bill\My Documents\Antbook\ch04> javac -d build\test test\org\example\antbook\junit\SimpleTest.java
It gives me an error saying: "java:4 error: Package org.junit does not exist" and same with line 5. Plus, on line 9, it cannot find the "@Test".
Heres, the code:
package org.example.antbook.junit;
//import JUnit4 classes:
import static org.junit.Assert.*;
import org.junit.Test;
public class SimpleTest
{
@Test
public void testSomething()
{
assertTrue("MULTIPLICATION???", 4 == (2 * 2));
}
}
Can anyone give any suggestions? Am I meant to copy the jar files containing the Junit classes in to a directory?
Thanks.