Hi!


I am trying to do Junit testing with Eclipse

1) download and install Junit
2)set the class path.
3)test the installation by running java org.junit.runner.JUnitCore org.junit.tests.AllTests.

i am unable to test my installation (Step-3)


it gives me
Error: java.lang.ClassCastException : class junit.tests.AllTests

Is something wrong with classpath settings?

Hi,

do you know how to fix it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.