public interface BigDecimalFluent<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>> extends org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value,BaseFluent,TheFluent,This>, ComparableFluent<BigDecimal,Value,BaseFluent,TheFluent,This>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BigDecimalFluent.AndChain<Value extends BigDecimal,TheFluent,This extends BigDecimalFluent.AndChain<Value,TheFluent,This>> |
static class |
BigDecimalFluent.Assert<Value extends BigDecimal> |
static interface |
BigDecimalFluent.OrChain<Value extends BigDecimal,TheFluent,This extends BigDecimalFluent.OrChain<Value,TheFluent,This>> |
static class |
BigDecimalFluent.Step<Value extends BigDecimal,TheFluent,This extends BigDecimalFluent.Step<Value,TheFluent,This>> |
| Modifier and Type | Method and Description |
|---|---|
BigDecimalFluent.AndChain<Value,TheFluent,?> |
all() |
BigDecimalFluent.AndChain<Value,TheFluent,?> |
both() |
BigDecimalFluent.AndChain<Value,TheFluent,?> |
both(org.hamcrest.Matcher<? super Value> matcher) |
default TheFluent |
closeTo(BigDecimal operand,
BigDecimal error)
Creates a matcher of
BigDecimals that matches when an examined BigDecimal is equal
to the specified operand, within a range of +/- error. |
BigDecimalFluent.OrChain<Value,TheFluent,?> |
either() |
BigDecimalFluent.OrChain<Value,TheFluent,?> |
either(org.hamcrest.Matcher<? super Value> matcher) |
comparesEqualTo, greaterThan, greaterThanOrEqualTo, lessThan, lessThanOrEqualToget, get, hasToString, hasToString, isIn, isIn, isOneOf, notNullValue, nullValue, sameInstance, theInstance__, __, __, allOf, anyOf, as, as, equalTo, has, has, has, has, hasNot, hasNot, hasNot, hasNot, hasType, is, is, is, isA, isNot, isNot, isNot, noneOf, not, not, not, not, notdefault TheFluent closeTo(BigDecimal operand, BigDecimal error)
BigDecimals that matches when an examined BigDecimal is equal
to the specified operand, within a range of +/- error. The comparison for equality
is done by BigDecimals BigDecimal.compareTo(java.math.BigDecimal) method.
For example:
assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))operand - the expected value of matching BigDecimalserror - the delta (+/-) within which matches will be allowedBigDecimalCloseTo.closeTo(java.math.BigDecimal,java.math.BigDecimal)BigDecimalFluent.OrChain<Value,TheFluent,?> either()
either in interface ComparableFluent<BigDecimal,Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.FluentStep<Value extends BigDecimal,BaseFluent>either in interface ObjectFluent<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>BigDecimalFluent.OrChain<Value,TheFluent,?> either(org.hamcrest.Matcher<? super Value> matcher)
either in interface ComparableFluent<BigDecimal,Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.FluentStep<Value extends BigDecimal,BaseFluent>either in interface ObjectFluent<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>BigDecimalFluent.AndChain<Value,TheFluent,?> both()
both in interface ComparableFluent<BigDecimal,Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.FluentStep<Value extends BigDecimal,BaseFluent>both in interface ObjectFluent<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>BigDecimalFluent.AndChain<Value,TheFluent,?> both(org.hamcrest.Matcher<? super Value> matcher)
both in interface ComparableFluent<BigDecimal,Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.FluentStep<Value extends BigDecimal,BaseFluent>both in interface ObjectFluent<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>BigDecimalFluent.AndChain<Value,TheFluent,?> all()
all in interface ComparableFluent<BigDecimal,Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>all in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>all in interface org.cthul.matchers.fluent.FluentStep<Value extends BigDecimal,BaseFluent>all in interface ObjectFluent<Value extends BigDecimal,BaseFluent,TheFluent extends BaseFluent,This extends BigDecimalFluent<Value,BaseFluent,TheFluent,This>>Copyright © 2015. All Rights Reserved.