BooleanCondition extends BasicCondition<Boolean, BooleanCondition> implements BooleanChecks<BooleanCondition> { @NonNull @Override public BooleanCondition isFalse() { require(this.subject).isNotNull(); if (this.subject) { DbcAssertionError.throwNew(new IllegalStateException("Expected subject to be false but was true"), this.message); } return this; } BooleanCondition(Boolean subject); @NonNull @Override BooleanCondition isTrue(); @NonNull @Override BooleanCondition isFalse();  }
@Test public void isFalse() throws Exception { BooleanCondition condition = new BooleanCondition(false); condition.isFalse(); assertThatThrownBy(condition::isTrue).isInstanceOf(DbcAssertionError.class) .hasCauseInstanceOf(IllegalStateException.class); }