S
- the "self" type of this assertion class. Please read "Emulating
'self types' using Java Generics to simplify fluent API implementation" for more details.A
- the type of the "actual" value.public interface FloatingPointNumberAssert<S extends FloatingPointNumberAssert<S,A>,A extends Number> extends NumberAssert<S,A>
Number
s.Modifier and Type | Method and Description |
---|---|
S |
isEqualTo(A expected,
Offset<A> offset)
Verifies that the actual value is equal to the given one, within a positive offset.
|
S |
isNaN()
Verifies that the actual value is equal to
NaN . |
S |
isNotNaN()
Verifies that the actual value is not equal to
NaN . |
isBetween, isNegative, isNotNegative, isNotPositive, isNotZero, isPositive, isStrictlyBetween, isZero
S isEqualTo(A expected, Offset<A> 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.S isNaN()
NaN
.AssertionError
- if the actual value is not equal to NaN
.S isNotNaN()
NaN
.AssertionError
- if the actual value is equal to NaN
.Copyright © 2013 AssertJ. All Rights Reserved.