Interface ArrayNodeDsl<A>
- Type Parameters:
A- the assertion type
- All Known Subinterfaces:
JsonNodeAssertDsl<A>
- All Known Implementing Classes:
ArrayNodes,AssertJson,ConditionList,CoreJsonAssertion,HamcrestJsonAssertion,HamcrestJsonAssertionBuilder,JsonAssertDslBuilders.At,PathDsl
Assertions specific to being an array node
-
Method Summary
Modifier and TypeMethodDescriptiondefault AisArray()Assert that the value is an arraydefault AisArrayContaining(Object first, Object... rest) The array contains given values.default AisArrayContaining(ConditionList conditions) The array contains values matching the conditionsdefault AisArrayContainingExactly(Object first, Object... rest) The array contains given values, in the given order, with no extra onesdefault AisArrayContainingExactly(ConditionList conditions) The array contains given values, in the given order, with no extra onesdefault AisArrayContainingExactlyInAnyOrder(Object first, Object... rest) The array contains given values, in any order, with no extra onesdefault AisArrayContainingExactlyInAnyOrder(ConditionList conditions) The array contains values meeting the given conditions, in any order, with no extra onesdefault AAssert that the value is not an arraydefault AsatisfiesArrayCondition(Condition condition) Assert that the value is an array, meeting an additional condition
-
Method Details
-
satisfiesArrayCondition
Assert that the value is an array, meeting an additional condition- Parameters:
condition- the number condition- Returns:
- the assertion for fluent assertions, with this condition added
-
isArray
Assert that the value is an array- Returns:
- the assertion for fluent assertions, with this condition added
-
isNotArray
Assert that the value is not an array- Returns:
- the assertion for fluent assertions, with this condition added
-
isArrayContaining
The array contains given values.- Parameters:
first- the first elementrest- the remaining elements- Returns:
- the assertion for fluent assertions, with this condition added
-
isArrayContaining
The array contains values matching the conditions- Parameters:
conditions- the conditions to match- Returns:
- the assertion for fluent assertions, with this condition added
- See Also:
-
isArrayContainingExactly
The array contains given values, in the given order, with no extra ones- Parameters:
first- the first elementrest- the remaining elements- Returns:
- the assertion for fluent assertions, with this condition added
-
isArrayContainingExactly
The array contains given values, in the given order, with no extra ones- Parameters:
conditions- the conditions to match- Returns:
- the assertion for fluent assertions, with this condition added
- See Also:
-
isArrayContainingExactlyInAnyOrder
The array contains given values, in any order, with no extra ones- Parameters:
first- the first elementrest- the remaining elements- Returns:
- the assertion for fluent assertions, with this condition added
-
isArrayContainingExactlyInAnyOrder
The array contains values meeting the given conditions, in any order, with no extra ones- Parameters:
conditions- the conditions- Returns:
- the assertion for fluent assertions, with this condition added
- See Also:
-