mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
defective leaf should treat initialization errors correctly
This commit is contained in:
@@ -81,7 +81,16 @@ public abstract class Filter {
|
||||
}
|
||||
};
|
||||
|
||||
public static final Filter DEFECTIVE_LEAF = DEFECT.and(LEAF);
|
||||
public static final Filter DEFECTIVE_LEAF = DEFECT.and(new Filter() {
|
||||
@Override
|
||||
public boolean shouldAccept(AbstractTestProxy test) {
|
||||
if (test.isLeaf()) return true;
|
||||
for (AbstractTestProxy testProxy : test.getChildren()) {
|
||||
if (testProxy.isDefect()) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
private static class AndFilter extends Filter {
|
||||
private final Filter myFilter1;
|
||||
|
||||
@@ -283,8 +283,7 @@ public abstract class TestObject implements JavaCommandLine {
|
||||
public void run() {
|
||||
packetsReceiver.checkTerminated();
|
||||
final JUnitRunningModel model = packetsReceiver.getModel();
|
||||
TestsUIUtil.notifyByBalloon(myProject, model != null ? model.getRoot() : null, consoleProperties,
|
||||
Filter.DEFECT);
|
||||
TestsUIUtil.notifyByBalloon(myProject, model != null ? model.getRoot() : null, consoleProperties, Filter.DEFECTIVE_LEAF);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user