Named TestSuite gives error in JUnit_4.1 used w/Eclipse
Joined: Mar 06, 2008
Hi All, I created a TestSuite using the Eclipse wizard and JUnit4_4.1. Works fine with the default name "AllTests". But if change the name to something else, gives error - "java.lang.Exception: No runnable methods". If I use JUnit_3.8.1 and Eclipse; everything works fine even if I can change the name of the TestSuite. Looks like something to do with JUnit4_4.1 version. The jar file is called junit-4.1.jar and Eclipse version is 3.2.0
Below are the error traces and the code used. Please advise-
When you run the test from Eclipse, make sure that the launch configuration is configured for the correct version of JUnit. If you don't, you will get exactly the error message you got.
I think there is also a global setting for what Eclipse will use as default.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus