DoubleCondition extends BasicCondition<Double, DoubleCondition> implements FloatingPointChecks<Double, DoubleCondition> { @Deprecated @Override public DoubleCondition isEqualTo(Double toCompare) { return isNear(toCompare); } DoubleCondition(Double subject); @Override DoubleCondition isGreaterThan(Double number); @Override DoubleCondition isGreaterThanOrEqual(Double number); @Override DoubleCondition isLessThan(Double number); @Override DoubleCondition isLessThanOrEqual(Double number); @Override DoubleCondition isNear(Double floatingPointNumber); @Override DoubleCondition isNearWithTolerance(Double floatingPointNumber, Double tolerance); @Override DoubleCondition isNearZero(); @Override DoubleCondition isNearZeroWithTolerance(Double tolerance); @Deprecated @Override DoubleCondition isEqualTo(Double toCompare);  }
@Test public void isEqualTo() throws Exception { DoubleCondition condition = new DoubleCondition(2.0D); condition.isEqualTo(2D); assertThatThrownBy(() -> condition.isEqualTo(1D)) .isInstanceOf(DbcAssertionError.class) .hasCauseInstanceOf(IllegalArgumentException.class); }