I'm trying to migrate some JUnit 3.8 tests to 4.3. At the moment my tests run fine in Eclipse, but when I try to run them from the command line they fall over with a "ClassCastException" error. This happens even when all the actual tests are ignored, e.g.:
If anyone has any suggestions as to what might be causing the problem, I'd be very grateful! I'm running the JUnit tests from the command line like so (obviously without the lines breaks, just introduced here for ease of viewing):
I've read through the Javadoc for "ClassCastException" and can't see what in the test code might be the issue? This happens with all my tests, which worked fine in JUnit 3.8, and all work fine in JUnit 4.3 through Eclipse. Thanks in advance.