public static interface GraphQlTester.Builder<B extends GraphQlTester.Builder<B>>
GraphQlTester
instance.Modifier and Type | Method and Description |
---|---|
GraphQlTester |
build()
Build the
GraphQlTester . |
B |
documentSource(DocumentSource contentLoader)
Configure a
DocumentSource for use with
GraphQlTester.documentName(String) for resolving a document by name. |
B |
errorFilter(Predicate<ResponseError> predicate)
Configure a global
filter that
applies to all requests. |
B |
responseTimeout(Duration timeout)
Max amount of time to wait for a GraphQL response.
|
B errorFilter(Predicate<ResponseError> predicate)
filter
that
applies to all requests.predicate
- the error filter to addB documentSource(DocumentSource contentLoader)
DocumentSource
for use with
GraphQlTester.documentName(String)
for resolving a document by name.
By default, this is set to ResourceDocumentSource
with
classpath location "graphql-test/"
and
ResourceDocumentSource.FILE_EXTENSIONS
as extensions.
B responseTimeout(Duration timeout)
By default this is set to 5 seconds.
timeout
- the response timeout valueGraphQlTester build()
GraphQlTester
.