Class AbstractDelegatingGraphQlTester
java.lang.Object
org.springframework.graphql.test.tester.AbstractDelegatingGraphQlTester
- All Implemented Interfaces:
GraphQlTester
Base class for extensions of
GraphQlTester
that mainly assist with
building the underlying transport, but otherwise delegate to the default
GraphQlTester
implementation for actual request execution.
Subclasses must implement GraphQlTester.mutate()
to allow mutation
of both GraphQlTester
and GraphQlTransport
configuration.
- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.graphql.test.tester.GraphQlTester
GraphQlTester.Builder<B extends GraphQlTester.Builder<B>>, GraphQlTester.Entity<D,
S extends GraphQlTester.Entity<D, S>>, GraphQlTester.EntityList<E>, GraphQlTester.Errors, GraphQlTester.Path, GraphQlTester.Request<T extends GraphQlTester.Request<T>>, GraphQlTester.Response, GraphQlTester.Subscription, GraphQlTester.Traversable -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionStart defining a GraphQL request with the given document, which is the textual representation of an operation (or operations) to perform, including selection sets and fragments.documentName
(String documentName) Variant ofGraphQlTester.document(String)
that uses the given key to resolve the GraphQL document from a file with the help of the configuredDocumentSource
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.graphql.test.tester.GraphQlTester
mutate
-
Constructor Details
-
AbstractDelegatingGraphQlTester
-
-
Method Details
-
document
Description copied from interface:GraphQlTester
Start defining a GraphQL request with the given document, which is the textual representation of an operation (or operations) to perform, including selection sets and fragments.- Specified by:
document
in interfaceGraphQlTester
- Parameters:
document
- the document for the request- Returns:
- spec for response assertions
-
documentName
Description copied from interface:GraphQlTester
Variant ofGraphQlTester.document(String)
that uses the given key to resolve the GraphQL document from a file with the help of the configuredDocumentSource
.- Specified by:
documentName
in interfaceGraphQlTester
- Returns:
- spec for response assertions
-