mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 03:55:46 +00:00
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:
parent
1658315c35
commit
375845feb5
@ -26,6 +26,7 @@ public class TestAssertions extends LuceneTestCase {
|
|||||||
assert Boolean.FALSE.booleanValue();
|
assert Boolean.FALSE.booleanValue();
|
||||||
fail("assertions are not enabled!");
|
fail("assertions are not enabled!");
|
||||||
} catch (AssertionError e) {
|
} catch (AssertionError e) {
|
||||||
|
assert Boolean.TRUE.booleanValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user