Interface HttpGraphQlTester
- All Superinterfaces:
GraphQlTester
,WebGraphQlTester
GraphQL over HTTP tester that uses
WebTestClient
and supports tests
with or without a running server, depending on how WebTestClient
is
configured.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
HttpGraphQlTester.Builder<B extends HttpGraphQlTester.Builder<B>>
Builder for the GraphQL over HTTP tester.Nested classes/interfaces inherited from interface org.springframework.graphql.test.tester.GraphQlTester
GraphQlTester.Entity<D,
S extends GraphQlTester.Entity<D, S>>, GraphQlTester.EntityList<E>, GraphQlTester.Errors, GraphQlTester.Path, GraphQlTester.Request<T extends GraphQlTester.Request<T>>, GraphQlTester.Response, GraphQlTester.Subscription, GraphQlTester.Traversable -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpGraphQlTester.Builder<?>
builder
(WebTestClient.Builder webTestClientBuilder) Return a builder to initialize anHttpGraphQlTester
by creating the underlyingWebTestClient
through the given builder.static HttpGraphQlTester
create
(WebTestClient webTestClient) Create anHttpGraphQlTester
that uses the givenWebTestClient
.mutate()
Create a builder initialized from the configuration of "this" tester.Methods inherited from interface org.springframework.graphql.test.tester.GraphQlTester
document, documentName
-
Method Details
-
mutate
HttpGraphQlTester.Builder<?> mutate()Description copied from interface:GraphQlTester
Create a builder initialized from the configuration of "this" tester. Use it to build a new, independently configured instance.- Specified by:
mutate
in interfaceGraphQlTester
- Specified by:
mutate
in interfaceWebGraphQlTester
-
create
Create anHttpGraphQlTester
that uses the givenWebTestClient
.- Parameters:
webTestClient
- theWebTestClient
to use
-
builder
Return a builder to initialize anHttpGraphQlTester
by creating the underlyingWebTestClient
through the given builder.- Parameters:
webTestClientBuilder
- theWebTestClient
builder to use
-