Interface HttpGraphQlTester.Builder<B extends HttpGraphQlTester.Builder<B>>
- Type Parameters:
B
- the type of builder
- All Superinterfaces:
GraphQlTester.Builder<B>
,WebGraphQlTester.Builder<B>
- Enclosing interface:
- HttpGraphQlTester
public static interface HttpGraphQlTester.Builder<B extends HttpGraphQlTester.Builder<B>>
extends WebGraphQlTester.Builder<B>
Builder for the GraphQL over HTTP tester.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theHttpGraphQlTester
instance.webTestClient
(Consumer<WebTestClient.Builder> webClient) Customize theWebTestClient
to use.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
-
webTestClient
Customize theWebTestClient
to use.Note that some properties of
WebTestClient.Builder
like the base URL, headers, and codecs can be customized through this builder.- Parameters:
webClient
- a consumer that customizes theWebClient
builder- See Also:
-
build
HttpGraphQlTester build()Build theHttpGraphQlTester
instance.- Specified by:
build
in interfaceGraphQlTester.Builder<B extends HttpGraphQlTester.Builder<B>>
- Specified by:
build
in interfaceWebGraphQlTester.Builder<B extends HttpGraphQlTester.Builder<B>>
- Returns:
- the created instance
-