Reputation: 7916
I create simple Java Application project with src
and test
folders. src
folder consists of the class which I test and test
folder consists of the class where I describe test. When I start testing, using JUnit 4 I get: Could not find the main class: org.eclipse.jdt.internal.junit.runner.RemoteTestRunner. Program will exit. error. All JAR files are presented in my project.
What did I miss in my project?
Upvotes: 0
Views: 1874
Reputation: 130
All JUnit tests should be written as follows:
@Test //This is very very important
public void testAbc()
{
//Test Abc() here....
}
Upvotes: 0
Reputation: 7402
Far shot: is the test
-folder containing the .java
-files for your tests also declared as a source-folder in the project's Build Path settings?
Upvotes: 1
Reputation: 61715
That is a class that is part of the Eclipse plugin, it sounds like you have a corrupted installation of Eclipse. Try with a fresh installation.
Upvotes: 3