Interface WebSocketGraphQlTester.Builder<B extends WebSocketGraphQlTester.Builder<B>>
- Type Parameters:
B
- the type of builder
- All Superinterfaces:
GraphQlTester.Builder<B>
,WebGraphQlTester.Builder<B>
- Enclosing interface:
- WebSocketGraphQlTester
public static interface WebSocketGraphQlTester.Builder<B extends WebSocketGraphQlTester.Builder<B>>
extends WebGraphQlTester.Builder<B>
Builder for a GraphQL over WebSocket tester.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theWebSocketGraphQlTester
.interceptor
(GraphQlClientInterceptor... interceptors) Configure interceptors to be invoked before delegating to theGraphQlTransport
to perform the request.interceptors
(Consumer<List<GraphQlClientInterceptor>> interceptorsConsumer) Customize the list of interceptors.Methods inherited from interface org.springframework.graphql.test.tester.GraphQlTester.Builder
documentSource, errorFilter, responseTimeout
Methods inherited from interface org.springframework.graphql.test.tester.WebGraphQlTester.Builder
codecConfigurer, header, headers, url, url
-
Method Details
-
interceptor
Configure interceptors to be invoked before delegating to theGraphQlTransport
to perform the request.- Parameters:
interceptors
- the interceptors to add- Returns:
- this builder
-
interceptors
Customize the list of interceptors. The provided list is "live", so the consumer can inspect and insert interceptors accordingly.- Parameters:
interceptorsConsumer
- consumer to customize the interceptors with- Returns:
- this builder
-
build
WebSocketGraphQlTester build()Build theWebSocketGraphQlTester
.- Specified by:
build
in interfaceGraphQlTester.Builder<B extends WebSocketGraphQlTester.Builder<B>>
- Specified by:
build
in interfaceWebGraphQlTester.Builder<B extends WebSocketGraphQlTester.Builder<B>>
- Returns:
- the created instance
-