decoupling testRunner from idea-rt

This commit is contained in:
Dmitry Jemerov
2009-09-01 12:49:52 +04:00
parent a15fef351b
commit d01c846ca5
2 changed files with 1 additions and 29 deletions
@@ -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();