Package | Description |
---|---|
org.springframework.graphql.test.tester |
GraphQL client testing support.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
GraphQlTester.EntitySpec<D,S extends GraphQlTester.EntitySpec<D,S>>
Declare options available to assert data converted to an entity.
|
static interface |
GraphQlTester.ListEntitySpec<E>
Extension of
GraphQlTester.EntitySpec with options available to assert data converted to
a List of entities. |
static interface |
GraphQlTester.PathSpec
Declare options available to assert data at a given path.
|
static interface |
GraphQlTester.ResponseSpec
Declare options to check the data and errors of a GraphQL response.
|
Modifier and Type | Method and Description |
---|---|
GraphQlTester.TraverseSpec |
GraphQlTester.PathSpec.matchesJson(String expectedJson)
Parse the JSON at the given path and the given expected JSON and assert that
the two are "similar".
|
GraphQlTester.TraverseSpec |
GraphQlTester.PathSpec.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.TraverseSpec |
GraphQlTester.ErrorSpec.satisfy(Consumer<List<GraphQLError>> errorsConsumer)
Inspect errors in
the response, if any.
|
GraphQlTester.TraverseSpec |
GraphQlTester.ErrorSpec.verify()
Verify there are either no errors or that there no unexpected errors that have
not been
filtered out . |