/assertions-rule

JUnit @Rule and annotation for testing Java assertions

Primary LanguageJava

JUnit @Rule and annotation for testing Java assertions.

Simplest usage:

To enable all tests to run iff -ea or -enableassertions passed on JVM command line: (see AssertionsRuleTest.java for examples)

@Rule public AssertionsRule assertionsRule = new AssertionsRule();