I'm trying to run some JUnit test units in eclipse 3.5, but with no luck at all.
JUnit3 works fine.
When I create the JUnit4 Test unit, eclipse offers to add the JUnit library to the class-path. I accept, but when i check to see if it was added in the project's properties panel, I can see JUnit4 was added, but no JARS where included.
If I choose edit, the combo says "JUnit 4", and just below "Current location: Not Found".
When I launch a JUnit4 test, I get an error saying and internal error occurred, NullPointerException.
I've read for about two days now, and all references say eclipse INCLUDES JUnit4, but somehow, there seems to be something i'm missing.
I've tried re-creating my projects, and creating test in brand new ones with no luck.
package test;
import static org.junit.Assert.*;
import org.junit.Test;
public class AuthServiceTest {
@Test
public final void testValidateCredentials() {
fail("Not yet implemented"); // TODO
}
}
[Edit] I've added junit-4.8.1.jar to the project's classpath, and eclipe's classpath, but still the same problem. [Edit2] I also added junit-dep-4.8.1.jar, since i'm not sure if these dependencies are necessary, but no change.