Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-1769: Add also the opposite assert statement

Uwe Schindler375845feb58e
diff --git a/src/test/org/apache/lucene/TestAssertions.java b/src/test/org/apache/lucene/TestAssertions.java
index 4ae4f975d73..94f07b91bd4 100644
--- a/src/test/org/apache/lucene/TestAssertions.java
+++ b/src/test/org/apache/lucene/TestAssertions.java
@@ -26,6 +26,7 @@ public class TestAssertions extends LuceneTestCase {
assert Boolean.FALSE.booleanValue();
fail("assertions are not enabled!");
} catch (AssertionError e) {
+ assert Boolean.TRUE.booleanValue();
}
}