public class IsCloseTo extends TypeSafeMatcher<Double>
Constructor and Description |
---|
IsCloseTo(double value,
double error) |
Modifier and Type | Method and Description |
---|---|
static Matcher<Double> |
closeTo(double operand,
double error) |
void |
describeMismatchSafely(Double item,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matchesSafely(Double item)
Subclasses should implement this.
|
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public boolean matchesSafely(Double item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<Double>
public void describeMismatchSafely(Double item, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<Double>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.Copyright © 2016. All rights reserved.