Interface ExecutionGraphQlServiceTester.Builder<B extends ExecutionGraphQlServiceTester.Builder<B>>
- Type Parameters:
B
- the type of builder
- All Superinterfaces:
GraphQlTester.Builder<B>
- Enclosing interface:
- ExecutionGraphQlServiceTester
public static interface ExecutionGraphQlServiceTester.Builder<B extends ExecutionGraphQlServiceTester.Builder<B>>
extends GraphQlTester.Builder<B>
Default
ExecutionGraphQlServiceTester.Builder
implementation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build aExecutionGraphQlServiceTester
instance.configureExecutionInput
(BiFunction<ExecutionInput, ExecutionInput.Builder, ExecutionInput> configurer) Provide aBiFunction
to help initialize theExecutionInput
with.Configure the JSON decoder to use for mapping response data to higher level objects.Configure the JSON encoder to use for mapping response data to higher level objects.Methods inherited from interface org.springframework.graphql.test.tester.GraphQlTester.Builder
documentSource, errorFilter, responseTimeout
-
Method Details
-
configureExecutionInput
B configureExecutionInput(BiFunction<ExecutionInput, ExecutionInput.Builder, ExecutionInput> configurer) Provide aBiFunction
to help initialize theExecutionInput
with.- Parameters:
configurer
- the function that initializes the execution input- Since:
- 1.1.2
- See Also:
-
encoder
Configure the JSON encoder to use for mapping response data to higher level objects.- Parameters:
encoder
- the JSON encoder to use
-
decoder
Configure the JSON decoder to use for mapping response data to higher level objects.- Parameters:
decoder
- the JSON decoder to use
-
build
ExecutionGraphQlServiceTester build()Build aExecutionGraphQlServiceTester
instance.- Specified by:
build
in interfaceGraphQlTester.Builder<B extends ExecutionGraphQlServiceTester.Builder<B>>
- Returns:
- the created instance
-