D - the entity typeS - the spec type, including subtypespublic static interface GraphQlTester.EntitySpec<D,S extends GraphQlTester.EntitySpec<D,S>> extends GraphQlTester.TraverseSpec
| Modifier and Type | Method and Description |
|---|---|
D |
get()
Return the converted entity.
|
<T extends S> |
isEqualTo(Object expected)
Assert the converted entity equals the given Object.
|
<T extends S> |
isNotEqualTo(Object other)
Assert the converted entity does not equal the given Object.
|
<T extends S> |
isNotSameAs(Object other)
Assert the converted entity is not the same instance as the given Object.
|
<T extends S> |
isSameAs(Object expected)
Assert the converted entity is the same instance as the given Object.
|
<T extends S> |
matches(Predicate<D> predicate)
Assert the converted entity matches the given predicate.
|
<T extends S> |
satisfies(Consumer<D> consumer)
Perform any assertions on the converted entity, e.g.
|
path<T extends S> T isEqualTo(Object expected)
T - the spec typeexpected - the expected Object<T extends S> T isNotEqualTo(Object other)
T - the spec typeother - the Object to check against<T extends S> T isSameAs(Object expected)
T - the spec typeexpected - the expected Object<T extends S> T isNotSameAs(Object other)
T - the spec typeother - the Object to check against<T extends S> T matches(Predicate<D> predicate)
T - the spec typepredicate - the expected Object<T extends S> T satisfies(Consumer<D> consumer)
T - the spec typeconsumer - the consumer to inspect the entity withD get()