Can somebody help me here please, I'm trying to execute a
JUnit suite of
Test Classes and getting the below Error message. My Classpath is properly set, don't know what the problem here is.
Thanks in advance.
[junit] Running TestArrays
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Testsuite: TestArrays
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Caused an ERROR
[junit] TestArrays
[junit] java.lang.ClassNotFoundException: TestArrays
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
My build file target script is this:
<target name="JUnitTesting" depends="compileTests">
<junit fork="false" haltonfailure="false" printsummary="true">
<jvmarg value="-classic"/>
<jvmarg value="-enableassertions"/>
<classpath>
<pathelement location="lib/xerces.jar" />
<pathelement location="lib/jakarta-regexp-1.3.jar" />
<pathelement location="lib/junit.jar" />
<pathelement location="lib/ant.jar" />
<pathelement location="lib/optional.jar" />
<pathelement location="lib/activation.jar" />
<pathelement location="lib/xalan.jar" />
<pathelement location="lib/ant-contrib-0.5.jar" />
<!--<pathelement path="${rep_dest}" />-->
</classpath>
<sysproperty key="user.timezone" value="GMT+05:30"/>
<sysproperty key="user.language" value="en"/>
<sysproperty key="user.country" value="US"/>
<formatter type="plain" usefile="false"/>
<batchtest>
<fileset dir="${src}/com/nds/platform/k3/development/java/util">
<include name="**/*Test*.java" />
<!--<filename name="**/*Test*.java"/>-->
</fileset>
</batchtest>
<!--<test name="com.nds.platform.k3.development.java.util.TestArrays" />-->
</junit>
</target>