Interface GraphQlTester.Entity<D,S extends GraphQlTester.Entity<D,S>>
- Type Parameters:
D
- the entity typeS
- theEntity
spec type
- All Superinterfaces:
GraphQlTester.Traversable
- All Known Subinterfaces:
GraphQlTester.EntityList<E>
- Enclosing interface:
- GraphQlTester
public static interface GraphQlTester.Entity<D,S extends GraphQlTester.Entity<D,S>>
extends GraphQlTester.Traversable
Contains a decoded entity and provides options to assert it
-
Method Summary
Modifier and TypeMethodDescriptionget()
Return the decoded entity value(s).<T extends S>
TVerify the decoded entity is equal to the given value.<T extends S>
TisNotEqualTo
(Object other) Verify the decoded entity is not equal to the given value.<T extends S>
TisNotSameAs
(Object other) Verify the decoded entity is not the same instance as the given value.<T extends S>
TVerify the decoded entity is the same instance as the given value.<T extends S>
TVerify the decoded entity matches the given predicate.<T extends S>
TVerify the entity with the givenConsumer
.Methods inherited from interface org.springframework.graphql.test.tester.GraphQlTester.Traversable
path
-
Method Details
-
isEqualTo
Verify the decoded entity is equal to the given value.- Parameters:
expected
- the expected value- Returns:
- the
Entity
spec for further assertions
-
isNotEqualTo
Verify the decoded entity is not equal to the given value.- Parameters:
other
- the value to check against- Returns:
- the
Entity
spec for further assertions
-
isSameAs
Verify the decoded entity is the same instance as the given value.- Parameters:
expected
- the expected value- Returns:
- the
Entity
spec for further assertions
-
isNotSameAs
Verify the decoded entity is not the same instance as the given value.- Parameters:
other
- the value to check against- Returns:
- the
Entity
spec for further assertions
-
matches
Verify the decoded entity matches the given predicate.- Parameters:
predicate
- the predicate to apply- Returns:
- the
Entity
spec for further assertions
-
satisfies
Verify the entity with the givenConsumer
.- Parameters:
consumer
- the consumer to apply- Returns:
- the
Entity
spec for further assertions
-
get
D get()Return the decoded entity value(s).
-