@Override
public void setUp() throws Exception {
super.setUp();
//we also need to set from where the info on the java env
JavaVmLocationFinder.callbackJavaExecutable = new ICallback() {
public Object call(Object args) {
calledJavaExecutable = true;
return new File(TestDependent.JAVA_LOCATION);
}
};
//and on the associated jars to the java runtime
JavaVmLocationFinder.callbackJavaJars = new ICallback() {
public Object call(Object args) {
calledJavaJars = true;
ArrayList<File> jars = new ArrayList<File>();
jars.add(new File(TestDependent.JAVA_RT_JAR_LOCATION));
return jars;