| Modifier and Type | Field and Description |
|---|---|
| private final BigDecimal | |
| private final BigDecimal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private BigDecimal | |
| public static Matcher | closeTo(BigDecimal
the expected value of matching BigDecimals operand, BigDecimal the delta (+/-) within which matches will be allowed error)Creates a matcher of |
| public void | describeMismatchSafely(BigDecimal item, Description mismatchDescription)
Overrides org. |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public boolean | matchesSafely(BigDecimal item)
Implements abstract org. |
| delta | back to summary |
|---|---|
| private final BigDecimal delta | |
| value | back to summary |
|---|---|
| private final BigDecimal value | |
| BigDecimalCloseTo | back to summary |
|---|---|
| public BigDecimalCloseTo(BigDecimal value, BigDecimal error) | |
| actualDelta | back to summary |
|---|---|
| private BigDecimal actualDelta(BigDecimal item) | |
| closeTo | back to summary |
|---|---|
| public static Matcher Creates a matcher of assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))
| |
| describeMismatchSafely | back to summary |
|---|---|
| public void describeMismatchSafely(BigDecimal 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(BigDecimal 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.
| |