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
Double s that matches when an examined double is not a number. |
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public boolean matchesSafely(java.lang.Double item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<java.lang.Double>
public void describeMismatchSafely(java.lang.Double item, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<java.lang.Double>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static Matcher<java.lang.Double> notANumber()
Double
s that matches when an examined double is not a number.
For example:
assertThat(Double.NaN, is(notANumber()))