T - the type of the "actual" value.public interface FloatingPointNumberAssert<T extends Number> extends NumberAssert<T>
Numbers.| Modifier and Type | Method and 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 to
NaN. |
FloatingPointNumberAssert<T> |
isNotNaN()
Verifies that the actual value is not equal to
NaN. |
isNegative, isNotNegative, isNotPositive, isNotZero, isPositive, isZeroFloatingPointNumberAssert<T> isEqualTo(T expected, Offset<T> offset)
expected - the given value to compare the actual value to.offset - the given positive offset.this assertion object.NullPointerException - if the given offset is null.NullPointerException - if the expected number is null.AssertionError - if the actual value is not equal to the given one.FloatingPointNumberAssert<T> isNaN()
NaN.AssertionError - if the actual value is not equal to NaN.FloatingPointNumberAssert<T> isNotNaN()
NaN.AssertionError - if the actual value is equal to NaN.Copyright © 2013 AssertJ. All Rights Reserved.