Interface NumberNodeDsl<A>
- Type Parameters:
A- the assertion type
- All Superinterfaces:
NumberComparisonDsl<A>,Satisfies<A>
- All Known Subinterfaces:
JsonNodeAssertDsl<A>
- All Known Implementing Classes:
AssertJson,ConditionList,CoreJsonAssertion,HamcrestJsonAssertion,HamcrestJsonAssertionBuilder,JsonAssertDslBuilders.At,NumberNodes,PathDsl
DSL assertions specific to numeric nodes
-
Method Summary
Modifier and TypeMethodDescriptiondefault AisDouble()Assert that the value is an number, castable to longdefault AisGreaterThanDouble(double number) Assert that the value is a number, greater thandefault AisGreaterThanInt(int number) Assert that the value is a number, greater thandefault AisGreaterThanLong(long number) Assert that the value is a number, greater thandefault AisGreaterThanOrEqualToDouble(double number) Assert that the value is a number, greater than or equal todefault AisGreaterThanOrEqualToInt(int number) Assert that the value is a number, greater than or equal todefault AisGreaterThanOrEqualToLong(long number) Assert that the value is a number, greater than or equal todefault AAssert that the value is an number, castable to integerdefault AisLessThanDouble(double number) Assert that the value is a number, less than the given numberdefault AisLessThanInt(int number) Assert that the value is a number, less than the given numberdefault AisLessThanLong(long number) Assert that the value is a number, less than the given numberdefault AisLessThanOrEqualToDouble(double number) Assert that the value is a number, less than or equal todefault AisLessThanOrEqualToInt(int number) Assert that the value is a number, less than or equal todefault AisLessThanOrEqualToLong(long number) Assert that the value is a number, less than or equal todefault AisLong()Assert that the value is an number, castable to longdefault AAssert that the node is not a number nodedefault AisNumber()Assert that the node is a number nodedefault AisNumberEqualTo(Number number) Assert that the value is a number, equal to the given numberdefault AisNumberNotEqualTo(Number number) Assert that the value is a number, not equal to the given numberMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.NumberComparisonDsl
isBetween, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isZero, satisfiesNumberCondition
-
Method Details
-
isGreaterThanInt
Assert that the value is a number, greater than- Parameters:
number- the amount- Returns:
- the assertion for fluent assertions, with this condition added
-
isGreaterThanDouble
Assert that the value is a number, greater than- Parameters:
number- the amount- Returns:
- the assertion for fluent assertions, with this condition added
-
isGreaterThanOrEqualToDouble
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
-
isGreaterThanOrEqualToInt
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
-
isGreaterThanLong
Assert that the value is a number, greater than- Parameters:
number- the amount- Returns:
- the assertion for fluent assertions, with this condition added
-
isGreaterThanOrEqualToLong
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
-
isLessThanOrEqualToInt
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
-
isLessThanOrEqualToLong
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
-
isLessThanOrEqualToDouble
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
-
isNotNumber
Assert that the node is not a number node- Returns:
- the assertion for fluent assertions, with this condition added
-
isNumber
Assert that the node is a number node- Returns:
- the assertion for fluent assertions, with this condition added
-
isNumberEqualTo
Assert that the value is a number, equal to the given number- Parameters:
number- the number to compare with- Returns:
- the assertion for fluent assertions, with this condition added
-
isNumberNotEqualTo
Assert that the value is a number, not equal to the given number- Parameters:
number- the number to compare with- Returns:
- the assertion for fluent assertions, with this condition added
-
isLessThanInt
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
-
isLessThanLong
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
-
isLessThanDouble
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
-
isInteger
Assert that the value is an number, castable to integer- Returns:
- the assertion for fluent assertions, with this condition added
-
isLong
Assert that the value is an number, castable to long- Returns:
- the assertion for fluent assertions, with this condition added
-
isDouble
Assert that the value is an number, castable to long- Returns:
- the assertion for fluent assertions, with this condition added
-