| Modifier and Type | Field and Description |
|---|---|
| private final double | |
| private final double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private double | |
| public static Matcher | |
| public void | describeMismatchSafely(Double item, Description mismatchDescription)
Overrides org. |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public boolean | matchesSafely(Double item)
Implements abstract org. |
| delta | back to summary |
|---|---|
| private final double delta | |
| value | back to summary |
|---|---|
| private final double value | |
| IsCloseTo | back to summary |
|---|---|
| public IsCloseTo(double value, double error) | |
| actualDelta | back to summary |
|---|---|
| private double actualDelta(Double item) | |
| closeTo | back to summary |
|---|---|
| public static Matcher Creates a matcher of For example: assertThat(1.03, is(closeTo(1.0, 0.03)))
| |
| describeMismatchSafely | back to summary |
|---|---|
| public void describeMismatchSafely(Double item, Description mismatchDescription) Overrides org. Doc from org. Subclasses should override this. The item will already have been checked for the specific type and will never be null.
| |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(Double item) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |