E - the type of elements in the listpublic static interface GraphQlTester.ListEntitySpec<E> extends GraphQlTester.EntitySpec<List<E>,GraphQlTester.ListEntitySpec<E>>
GraphQlTester.EntitySpec with options available to assert data converted to
a List of entities.| Modifier and Type | Method and Description |
|---|---|
GraphQlTester.ListEntitySpec<E> |
contains(E... elements)
Assert the list contains the given elements.
|
GraphQlTester.ListEntitySpec<E> |
containsExactly(E... elements)
Assert the list contains the given elements.
|
GraphQlTester.ListEntitySpec<E> |
doesNotContain(E... elements)
Assert the list does not contain the given elements.
|
GraphQlTester.ListEntitySpec<E> |
hasSize(int size)
Assert the list contains the specified number of elements.
|
GraphQlTester.ListEntitySpec<E> |
hasSizeGreaterThan(int boundary)
Assert the list contains more elements than the specified number.
|
GraphQlTester.ListEntitySpec<E> |
hasSizeLessThan(int boundary)
Assert the list contains fewer elements than the specified number.
|
get, isEqualTo, isNotEqualTo, isNotSameAs, isSameAs, matches, satisfiespathGraphQlTester.ListEntitySpec<E> contains(E... elements)
elements - values that are expectedGraphQlTester.ListEntitySpec<E> doesNotContain(E... elements)
elements - values that are not expectedGraphQlTester.ListEntitySpec<E> containsExactly(E... elements)
elements - values that are expectedGraphQlTester.ListEntitySpec<E> hasSize(int size)
size - the number of elements expectedGraphQlTester.ListEntitySpec<E> hasSizeLessThan(int boundary)
boundary - the number to compare the number of elements toGraphQlTester.ListEntitySpec<E> hasSizeGreaterThan(int boundary)
boundary - the number to compare the number of elements to