Package | Description |
---|---|
org.springframework.graphql.test.tester |
GraphQL client testing support.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
GraphQlTester.Entity<D,S extends GraphQlTester.Entity<D,S>>
Contains a decoded entity and provides options to assert it
|
static interface |
GraphQlTester.EntityList<E>
Contains a List of decoded entities and provides options to assert them.
|
static interface |
GraphQlTester.Path
Options available to assert the response values at the current path.
|
static interface |
GraphQlTester.Response
Declare options to check the data and errors of a GraphQL response.
|
Modifier and Type | Method and Description |
---|---|
GraphQlTester.Traversable |
GraphQlTester.Path.matchesJson(String expectedJson)
Parse the JSON at the given path and the given expected JSON and assert that
the two are "similar".
|
GraphQlTester.Traversable |
GraphQlTester.Path.matchesJsonStrictly(String expectedJson)
Parse the JSON at the given path and the given expected JSON and assert that
the two are "similar" so they contain the same attribute-value pairs regardless
of formatting, along with lenient checking, e.g.
|
GraphQlTester.Traversable |
GraphQlTester.Errors.satisfy(Consumer<List<ResponseError>> errorsConsumer)
Inspect errors in
the response, if any.
|
GraphQlTester.Traversable |
GraphQlTester.Errors.verify()
Verify there are either no errors or that there no unexpected errors that have
not been
filtered out . |