Interface GraphQlTester.EntityList<E>

Type Parameters:
E - the type of elements in the list
All Superinterfaces:
GraphQlTester.Entity<List<E>,GraphQlTester.EntityList<E>>, GraphQlTester.Traversable
Enclosing interface:
GraphQlTester

public static interface GraphQlTester.EntityList<E> extends GraphQlTester.Entity<List<E>,GraphQlTester.EntityList<E>>
Contains a List of decoded entities and provides options to assert them.
  • Method Details

    • contains

      GraphQlTester.EntityList<E> contains(E... values)
      Verify the list contains the given values, in any order.
      Parameters:
      values - values that are expected
      Returns:
      the EntityList spec for further assertions
    • doesNotContain

      GraphQlTester.EntityList<E> doesNotContain(E... values)
      Verify the list does not contain the given values.
      Parameters:
      values - the values that are not expected
      Returns:
      the EntityList spec for further assertions
    • containsExactly

      GraphQlTester.EntityList<E> containsExactly(E... values)
      Verify that the list contains exactly the given values and nothing else, in the same order.
      Parameters:
      values - the expected values
      Returns:
      the EntityList spec for further assertions
    • hasSize

      GraphQlTester.EntityList<E> hasSize(int size)
      Verify the number of values in the list.
      Parameters:
      size - the expected size
      Returns:
      the EntityList spec for further assertions
    • hasSizeLessThan

      GraphQlTester.EntityList<E> hasSizeLessThan(int size)
      Verify the list has fewer than the number of values.
      Parameters:
      size - the number to compare the actual size to
      Returns:
      the EntityList spec for further assertions
    • hasSizeGreaterThan

      GraphQlTester.EntityList<E> hasSizeGreaterThan(int size)
      Verify the list has more than the specified number of values.
      Parameters:
      size - the number to compare the actual size to
      Returns:
      the EntityList spec for further assertions