mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
fix junit 5 tests running in debug IDEA instance
This commit is contained in:
@@ -215,7 +215,9 @@ public abstract class TestObject extends JavaTestFrameworkRunnableState<JUnitCon
|
||||
|
||||
public static File getJUnit5RtFile() {
|
||||
File junit4Rt = new File(PathUtil.getJarPathForClass(JUnit4IdeaTestRunner.class));
|
||||
String junit5Name = junit4Rt.getName().replace("junit", "junit5");
|
||||
String junit4Name = junit4Rt.getName();
|
||||
String junit5Name = junit4Rt.isDirectory() ? junit4Name.replace("junit", "junit.v5")
|
||||
: junit4Name.replace("junit", "junit5");
|
||||
return new File(junit4Rt.getParent(), junit5Name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user