All,

   We use Parasoft JTest to generate JUnit based unit tests.  Afterward, I am 
able to run them in eclipse using "Run As -> JUnit Test", and they work fine.  
So, I think I should be able to run them using surefire, as long as I have the 
parasoft jars on the classpath, but I get the errors below.   Is there a reason 
this should not work, or is there something I can do to make it work?

[DEBUG] Test Classpath :
[DEBUG]   /home/cbrown/workspace/genpur/target/classes
[DEBUG]   /home/cbrown/workspace/genpur/target/test-classes
[DEBUG]   /home/cbrown/.m2/repository/parasoft/com/junit/7.5.43/junit-7.5.43.jar
[DEBUG]   /home/cbrown/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[DEBUG]   
/home/cbrown/.m2/repository/junit-addons/junit-addons/1.4/junit-addons-1.4.jar
[DEBUG]   
/home/cbrown/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar
[DEBUG]   
/home/cbrown/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar
[DEBUG]   /home/cbrown/.m2/repository/parasoft/com/jtest/7.5.43/jtest-7.5.43.jar
[DEBUG] Setting system property [localRepository]=[/home/cbrown/.m2/repository]
[DEBUG] Setting system property [basedir]=[/home/cbrown/workspace/genpur]
[INFO] Surefire report directory: 
/home/cbrown/workspace/genpur/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.sensis.util.ThreadManagerTest
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] com.sensis.util.ThreadManagerTest; nested exception is 
java.lang.NoClassDefFoundError: junit/framework/TestCase; nested exception is 
org.apache.maven.surefire.testset.TestSetFailedException: 
com.sensis.util.ThreadManagerTest; nested exception is 
java.lang.NoClassDefFoundError: junit/framework/TestCase

Reply via email to