mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit: do not initialize new runner if it's simple Parameterized (IDEA-137563)
This commit is contained in:
@@ -333,7 +333,7 @@ public class JUnit4TestRunnerUtil {
|
||||
super(clazz);
|
||||
myName = name;
|
||||
myMethodName = methodName;
|
||||
myRunnerClass = (Parameterized)runnerClass.getConstructor(new Class[] {Class.class}).newInstance(new Object[]{clazz});
|
||||
myRunnerClass = runnerClass.equals(Parameterized.class) ? this : (Parameterized)runnerClass.getConstructor(new Class[] {Class.class}).newInstance(new Object[]{clazz});
|
||||
}
|
||||
|
||||
protected List getChildren() {
|
||||
|
||||
Reference in New Issue
Block a user