public static interface GraphQlTester.Builder<T extends GraphQlTester.Builder<T>>
GraphQlTester instance.| Modifier and Type | Method and Description |
|---|---|
GraphQlTester |
build()
Build the
GraphQlTester. |
T |
errorFilter(Predicate<GraphQLError> predicate)
Add a global filter for expected errors.
|
T |
jsonPathConfig(com.jayway.jsonpath.Configuration config)
Provide JSONPath configuration settings, including a
JsonProvider as well as a
MappingProvider that are used
to serialize and deserialize GraphQL JSON content. |
T |
responseTimeout(Duration timeout)
Max amount of time to wait for a GraphQL response.
|
T errorFilter(Predicate<GraphQLError> predicate)
GraphQlTester.ErrorSpec.verify() or when
traversing to a data path.predicate - the error filter to addT jsonPathConfig(com.jayway.jsonpath.Configuration config)
JsonProvider as well as a
MappingProvider that are used
to serialize and deserialize GraphQL JSON content.
By default the configuration is to use Jackson JSON if it is present on the classpath.
config - the JSONPath configuration to useT responseTimeout(Duration timeout)
By default this is set to 5 seconds.
timeout - the response timeout valueGraphQlTester build()
GraphQlTester.