public class AbstractAssert_failWithMessage_Test {
@Test
public void should_fail() {
// should not fail
new ConcreteAssert("foo").failIfTrue(false);
// should fail
try {
new ConcreteAssert("foo").failIfTrue(true);
} catch (AssertionError e) {
assertEquals("\"predefined\" error message", e.getMessage());
return;
}
failBecauseExpectedAssertionErrorWasNotThrown();