Interface ArrayNodeDsl<A>

Type Parameters:
A - the assertion type
All Superinterfaces:
Satisfies<A>, Sizeable<A>
All Known Subinterfaces:
JsonNodeAssertDsl<A>
All Known Implementing Classes:
ArrayNodes, AssertJson, ConditionList, CoreJsonAssertion, HamcrestJsonAssertion, HamcrestJsonAssertionBuilder, JsonAssertDslBuilders.At, PathDsl

public interface ArrayNodeDsl<A> extends Satisfies<A>, Sizeable<A>
Assertions specific to being an array node
  • Method Details

    • satisfiesArrayCondition

      default A satisfiesArrayCondition(Condition condition)
      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

      default A isArray()
      Assert that the value is an array
      Returns:
      the assertion for fluent assertions, with this condition added
    • isNotArray

      default A isNotArray()
      Assert that the value is not an array
      Returns:
      the assertion for fluent assertions, with this condition added
    • isArrayContaining

      default A isArrayContaining(Object first, Object... rest)
      The array contains given values.
      Parameters:
      first - the first element
      rest - the remaining elements
      Returns:
      the assertion for fluent assertions, with this condition added
    • isArrayContaining

      default A isArrayContaining(ConditionList conditions)
      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

      default A isArrayContainingExactly(Object first, Object... rest)
      The array contains given values, in the given order, with no extra ones
      Parameters:
      first - the first element
      rest - the remaining elements
      Returns:
      the assertion for fluent assertions, with this condition added
    • isArrayContainingExactly

      default A isArrayContainingExactly(ConditionList conditions)
      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

      default A isArrayContainingExactlyInAnyOrder(Object first, Object... rest)
      The array contains given values, in any order, with no extra ones
      Parameters:
      first - the first element
      rest - the remaining elements
      Returns:
      the assertion for fluent assertions, with this condition added
    • isArrayContainingExactlyInAnyOrder

      default A isArrayContainingExactlyInAnyOrder(ConditionList conditions)
      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: