Assert.assertEquals
- void assertEquals(string message, T expected, T actual)
- void assertEquals(T expected, T actual)
- void assertEquals(string message, double expected, double actual, double delta)
- void assertEquals(string message, float expected, float actual, float delta)
- void assertEquals(long expected, long actual)
- void assertEquals(string message, long expected, long actual)
- void assertEquals(double expected, double actual, double delta)
- void assertEquals(float expected, float actual, float delta)
hunt Assert Assert
constructorsstatic functions
Asserts that two doubles are equal to within a positive delta. If they are not, an {@link AssertionError} is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: <code>assertEquals(Double.NaN, Double.NaN, *)</code> passes
@param message the identifying message for the {@link AssertionError} (<code>null</code> okay) @param expected expected value @param actual the value to check against <code>expected</code> @param delta the maximum delta between <code>expected</code> and <code>actual</code> for which both numbers are still considered equal.