mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix predicted test names CCE
This commit is contained in:
@@ -34,4 +34,7 @@ public abstract class JavaTestConfigurationBase extends ModuleBasedConfiguration
|
||||
ConfigurationFactory factory) {
|
||||
super(configurationModule, factory);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public abstract String getFrameworkPrefix();
|
||||
}
|
||||
|
||||
-3
@@ -219,7 +219,4 @@ public abstract class TestDiscoveryConfiguration extends JavaTestConfigurationBa
|
||||
public String getChangeList() {
|
||||
return myChangeList;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public abstract String getFrameworkPrefix();
|
||||
}
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ public class TestDiscoveryExtension extends RunConfigurationExtension {
|
||||
if ((root == null || root.getHandler() == handler)) {
|
||||
final String fullTestName = test.getLocationUrl();
|
||||
if (fullTestName != null && fullTestName.startsWith(JavaTestLocator.TEST_PROTOCOL)) {
|
||||
myCompletedMethodNames.add(((TestDiscoveryConfiguration)configuration).getFrameworkPrefix() + fullTestName.substring(JavaTestLocator.TEST_PROTOCOL.length() + 3));
|
||||
myCompletedMethodNames.add(((JavaTestConfigurationBase)configuration).getFrameworkPrefix() + fullTestName.substring(JavaTestLocator.TEST_PROTOCOL.length() + 3));
|
||||
if (myCompletedMethodNames.size() > 50) {
|
||||
final String[] fullTestNames = ArrayUtil.toStringArray(myCompletedMethodNames);
|
||||
myCompletedMethodNames.clear();
|
||||
|
||||
@@ -456,6 +456,12 @@ public class JUnitConfiguration extends JavaTestConfigurationBase {
|
||||
return new JUnitConsoleProperties(this, executor);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getFrameworkPrefix() {
|
||||
return "j";
|
||||
}
|
||||
|
||||
public static class Data implements Cloneable {
|
||||
public String PACKAGE_NAME;
|
||||
public String MAIN_CLASS_NAME;
|
||||
|
||||
@@ -426,4 +426,10 @@ public class TestNGConfiguration extends JavaTestConfigurationBase {
|
||||
public SMTRunnerConsoleProperties createTestConsoleProperties(Executor executor) {
|
||||
return new TestNGConsoleProperties(this, executor);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getFrameworkPrefix() {
|
||||
return "g";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user