AnsweredAssumed Answered

Unit Test Fails Class Not Found

Question asked by tmcclure on Jul 15, 2013
Latest reply on Oct 17, 2014 by jbarrez
I am working through a simple example of creating a process using the Activiti designer.  I create the unit test and the all references correctly resolved.  I get a class not found exception when I try to execute the unit test and notice that no unit test class is being created in the target directory.  The project is Maven enabled - and as I said all references are resolved.  I am probably doing something stupid - below is my exception trace:

Class not found org.activiti.designer.test.ProcessTestMyProcess
java.lang.ClassNotFoundException: org.activiti.designer.test.ProcessTestMyProcess
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:693)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:429)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Outcomes