LUCENE-1769: Add also the opposite assert statement

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@891907 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-12-17 21:09:46 +00:00
parent 1658315c35
commit 375845feb5

View File

@ -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();
}
}