mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
decoupling testRunner from idea-rt
This commit is contained in:
@@ -62,33 +62,12 @@ public abstract class Filter {
|
||||
}
|
||||
};
|
||||
|
||||
public static final Filter TEST_CASE = new Filter() {
|
||||
public boolean shouldAccept(final AbstractTestProxy test) {
|
||||
return test.shouldRun();
|
||||
}
|
||||
};
|
||||
|
||||
public static final Filter IN_PROGRESS = new Filter() {
|
||||
public boolean shouldAccept(final AbstractTestProxy test) {
|
||||
return test.isInProgress();
|
||||
}
|
||||
};
|
||||
|
||||
public static final Filter LEAF = new Filter() {
|
||||
public boolean shouldAccept(final AbstractTestProxy test) {
|
||||
return test.isLeaf();
|
||||
}
|
||||
};
|
||||
|
||||
public static final Filter RUNNING = new Filter() {
|
||||
public boolean shouldAccept(final AbstractTestProxy test) {
|
||||
return test.getMagnitude() == PoolOfTestStates.RUNNING_INDEX;
|
||||
}
|
||||
};
|
||||
|
||||
public static final Filter NOT_LEAF = LEAF.not();
|
||||
public static final Filter RUNNING_LEAF = RUNNING.and(LEAF);
|
||||
|
||||
public static final Filter DEFECTIVE_LEAF = DEFECT.and(LEAF);
|
||||
|
||||
private static class AndFilter extends Filter {
|
||||
|
||||
@@ -6,7 +6,6 @@ package com.intellij.execution.testframework;
|
||||
|
||||
import com.intellij.execution.ExecutionBundle;
|
||||
import com.intellij.history.LocalHistory;
|
||||
import com.intellij.rt.execution.junit.states.PoolOfTestStates;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
@@ -24,13 +23,7 @@ public class LvcsHelper {
|
||||
}
|
||||
else {
|
||||
color = GREEN.getRGB();
|
||||
|
||||
if (model.getRoot().getMagnitude() != PoolOfTestStates.PASSED_INDEX) {
|
||||
label = ExecutionBundle.message("tests.passed.with.warnings.message");
|
||||
}
|
||||
else {
|
||||
label = ExecutionBundle.message("junit.runing.info.tests.passed.label");
|
||||
}
|
||||
label = ExecutionBundle.message("junit.runing.info.tests.passed.label");
|
||||
}
|
||||
final TestConsoleProperties consoleProperties = model.getProperties();
|
||||
String name = label + " " + consoleProperties.getConfiguration().getName();
|
||||
|
||||
Reference in New Issue
Block a user