Package org.fest.assertions.core
Interface FloatingPointNumberAssert<T extends Number>
- Type Parameters:
T- the type of the "actual" value.
- All Superinterfaces:
NumberAssert<T>
- All Known Implementing Classes:
DoubleAssert,FloatAssert
Assertion methods applicable to floating-point
Numbers.- Author:
- Alex Ruiz, Yvonne Wang
-
Method Summary
Methods inherited from interface org.fest.assertions.core.NumberAssert
isNegative, isNotNegative, isNotPositive, isNotZero, isPositive, isZero
-
Method Details
-
isEqualTo
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:
NullPointerException- if the given offset isnull.NullPointerException- if the expected number isnull.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:
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:
AssertionError- if the actual value is equal toNaN.
-