public final class IsNaN extends TypeSafeMatcher<java.lang.Double>
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(java.lang.Double item,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matchesSafely(java.lang.Double item)
Subclasses should implement this.
|
static Matcher<java.lang.Double> |
notANumber()
Creates a matcher of
Doubles that matches when an examined double is not a number. |
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matchesSafely(java.lang.Double item)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<java.lang.Double>public void describeMismatchSafely(java.lang.Double item,
Description mismatchDescription)
TypeSafeMatcherdescribeMismatchSafely in class TypeSafeMatcher<java.lang.Double>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.public static Matcher<java.lang.Double> notANumber()
Doubles that matches when an examined double is not a number.
For example:
assertThat(Double.NaN, is(notANumber()))