Interface NumberComparisonDsl<A>
- Type Parameters:
A- the assertion type
- All Superinterfaces:
Satisfies<A>
- All Known Subinterfaces:
JsonNodeAssertDsl<A>,NumberNodeDsl<A>
- All Known Implementing Classes:
AssertJson,ConditionList,CoreJsonAssertion,HamcrestJsonAssertion,HamcrestJsonAssertionBuilder,JsonAssertDslBuilders.At,NumberNodes,PathDsl
DSL assertions specific to arbitrary numbers
-
Method Summary
Modifier and TypeMethodDescriptiondefault AAssert that the value lies between the limitsdefault AisGreaterThan(Number number) Assert that the value is a number, greater thandefault AisGreaterThanOrEqualTo(Number number) Assert that the value is a number, greater than or equal todefault AisLessThan(Number number) Assert that the value is a number, less than the given numberdefault AisLessThanOrEqualTo(Number number) Assert that the value is a number, less than or equal todefault AisZero()Assert that the value is a number, equal to 0default AsatisfiesNumberCondition(Condition condition) Assert that the value is a number, meeting an additional condition
-
Method Details
-
satisfiesNumberCondition
Assert that the value is a number, meeting an additional condition- Parameters:
condition- the number condition- Returns:
- the assertion for fluent assertions, with this condition added
-
isGreaterThan
Assert that the value is a number, greater than- Parameters:
number- the amount- Returns:
- the assertion for fluent assertions, with this condition added
-
isGreaterThanOrEqualTo
Assert that the value is a number, greater than or equal to- Parameters:
number- the amount- Returns:
- the assertion for fluent assertions, with this condition added
-
isLessThan
Assert that the value is a number, less than the given number- Parameters:
number- the number to compare with- Returns:
- the assertion for fluent assertions, with this condition added
-
isLessThanOrEqualTo
Assert that the value is a number, less than or equal to- Parameters:
number- the amount- Returns:
- the assertion for fluent assertions, with this condition added
-
isBetween
Assert that the value lies between the limits- Parameters:
firstInclusive- the first one which the value must be greater than or equal tolastInclusive- the last one which the value must be less than or equal to- Returns:
- the assertion for fluent assertions, with this condition added
-
isZero
Assert that the value is a number, equal to 0- Returns:
- the assertion for fluent assertions, with this condition added
-