ArrayOutOfBoundsException when running Jt Harness with Junit 4.x
I was trying to retrofit Junit 4.x test cases to be run with JT Harness 4.2. I am trying to use the following finder in my jtt file:
finder=com.sun.javatest.junit.JUnitSuperTestFinder -superclass junit.framework.TestCase
One of my Junit test cases throws a ArrayOutOfBoundsException even before getting into my Junit test class. The following is the stacktrace i see on the Jt Harness command prompt:
Exception in thread "Harness:Worker" java.lang.ArrayIndexOutOfBoundsException: 0
Has anyone seen this before? I even tried removing all tests from within the suspect test class file and have a simple vanilla test, even that failed. Also, it is obvious that the stacktrace and the failure happens even before it can get to my junit test.
I also get an error for 2 of my classes which aren't Junit tests right after completion of the configuration interview. These 2 classes neither extend junit.framework.TestCase nor have the org.junit.Test annotations in them. The error reads as follows: Cannot load superclass of for both the classes. Any reason why this could be happening?
Any help is greatly appreciated.