Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Suppress stdouts from nested suites.

Dawid Weiss9bff9fd7908b
diff --git a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestExceptionInBeforeClassHooks.java b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestExceptionInBeforeClassHooks.java
index bce5c8d778e..fa2798518f0 100644
--- a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestExceptionInBeforeClassHooks.java
+++ b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestExceptionInBeforeClassHooks.java
@@ -33,7 +33,7 @@ import org.junit.runner.notification.Failure;
public class TestExceptionInBeforeClassHooks extends WithNestedTests {
public TestExceptionInBeforeClassHooks() {
- super(false);
+ super(true);
}
public static class Nested1 extends WithNestedTests.AbstractNestedTest {
diff --git a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestSystemPropertiesInvariantRule.java b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestSystemPropertiesInvariantRule.java
index 3b9d77dfaa3..8c8fed693fc 100644
--- a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestSystemPropertiesInvariantRule.java
+++ b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestSystemPropertiesInvariantRule.java
@@ -25,10 +25,14 @@ import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
-public class TestSystemPropertiesInvariantRule {
+public class TestSystemPropertiesInvariantRule extends WithNestedTests {
public static final String PROP_KEY1 = "new-property-1";
public static final String VALUE1 = "new-value-1";
+ public TestSystemPropertiesInvariantRule() {
+ super(true);
+ }
+
public static class Base extends LuceneTestCase {
public void testEmpty() {}
}