Interface WebGraphQlTester
- All Superinterfaces:
GraphQlTester
- All Known Subinterfaces:
HttpGraphQlTester
,WebSocketGraphQlTester
Server-side tester, without a client, that executes requests through a
WebGraphQlHandler
. Similar to ExecutionGraphQlServiceTester
but also
adding a web processing layer with a WebGraphQlInterceptor
chain.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
WebGraphQlTester.Builder<B extends WebGraphQlTester.Builder<B>>
Common builder for WebGraphQlTester
extensions.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 WebGraphQlTester.Builder<?>
builder
(WebGraphQlHandler graphQlHandler) Return a builder for aWebGraphQlTester
.static WebGraphQlTester
create
(WebGraphQlHandler graphQlHandler) Create aWebGraphQlTester
instance.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
WebGraphQlTester.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
-
create
Create aWebGraphQlTester
instance.- Parameters:
graphQlHandler
- the web GraphQL handler to be tested
-
builder
Return a builder for aWebGraphQlTester
.- Parameters:
graphQlHandler
- the handler to execute requests
-