mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit compatibility with old IDEA SDKs: ensure current idea_rt.jar is used to run tests
This commit is contained in:
@@ -109,7 +109,7 @@ public abstract class JavaTestFrameworkRunnableState<T extends ModuleBasedConfig
|
||||
return null;
|
||||
}
|
||||
getJavaParameters().getVMParametersList().addProperty("idea." + getFrameworkId() + ".sm_runner");
|
||||
getJavaParameters().getClassPath().add(PathUtil.getJarPathForClass(ServiceMessageTypes.class));
|
||||
getJavaParameters().getClassPath().addFirst(PathUtil.getJarPathForClass(ServiceMessageTypes.class));
|
||||
|
||||
final RunnerSettings runnerSettings = getRunnerSettings();
|
||||
|
||||
@@ -191,8 +191,7 @@ public abstract class JavaTestFrameworkRunnableState<T extends ModuleBasedConfig
|
||||
finally {
|
||||
getConfiguration().setProgramParameters(parameters);
|
||||
}
|
||||
JavaSdkUtil.addRtJar(javaParameters.getClassPath());
|
||||
|
||||
javaParameters.getClassPath().addFirst(JavaSdkUtil.getIdeaRtJarPath());
|
||||
configureClasspath(javaParameters);
|
||||
|
||||
if (!StringUtil.isEmptyOrSpaces(parameters)) {
|
||||
|
||||
Reference in New Issue
Block a user