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