Package org.fest.assertions.core
Interface FloatingPointNumberAssert<T extends java.lang.Number>
-
- Type Parameters:
T- the type of the "actual" value.
- All Superinterfaces:
NumberAssert<T>
- All Known Implementing Classes:
DoubleAssert,FloatAssert
public interface FloatingPointNumberAssert<T extends java.lang.Number> extends NumberAssert<T>
Assertion methods applicable to floating-points.Number- Author:
- Alex Ruiz, Yvonne Wang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FloatingPointNumberAssert<T>isEqualTo(T expected, Offset<T> offset)Verifies that the actual value is equal to the given one, within a positive offset.FloatingPointNumberAssert<T>isNaN()Verifies that the actual value is equal toNaN.FloatingPointNumberAssert<T>isNotNaN()Verifies that the actual value is not equal toNaN.-
Methods inherited from interface org.fest.assertions.core.NumberAssert
isNegative, isNotNegative, isNotPositive, isNotZero, isPositive, isZero
-
-
-
-
Method Detail
-
isEqualTo
FloatingPointNumberAssert<T> isEqualTo(T expected, Offset<T> offset)
Verifies that the actual value is equal to the given one, within a positive offset.- Parameters:
expected- the given value to compare the actual value to.offset- the given positive offset.- Returns:
thisassertion object.- Throws:
java.lang.NullPointerException- if the given offset isnull.java.lang.NullPointerException- if the expected number isnull.java.lang.AssertionError- if the actual value is not equal to the given one.
-
isNaN
FloatingPointNumberAssert<T> isNaN()
Verifies that the actual value is equal toNaN.- Returns:
- this assertion object.
- Throws:
java.lang.AssertionError- if the actual value is not equal toNaN.
-
isNotNaN
FloatingPointNumberAssert<T> isNotNaN()
Verifies that the actual value is not equal toNaN.- Returns:
- this assertion object.
- Throws:
java.lang.AssertionError- if the actual value is equal toNaN.
-
-