Package org.springframework.graphql.test.tester
@NonNullApi
@NonNullFields
package org.springframework.graphql.test.tester
GraphQL client testing support.
-
ClassDescriptionBase class for extensions of
GraphQlTesterthat mainly assist with building the underlying transport, but otherwise delegate to the defaultGraphQlTesterimplementation for actual request execution.AbstractGraphQlTesterBuilder<B extends AbstractGraphQlTesterBuilder<B>>Abstract, base class for transport specificGraphQlTester.Builderimplementations.Default implementation ofRSocketGraphQlTester.Builderthat wraps anRSocketGraphQlClient.Builder.GraphQlTesterthat executes requests through anExecutionGraphQlServiceon the server side, without a client.DefaultExecutionGraphQlServiceTester.Builderimplementation.Define a workflow to test GraphQL requests that is independent of the underlying transport.GraphQlTester.Builder<B extends GraphQlTester.Builder<B>>A builder to create aGraphQlTesterinstance.GraphQlTester.Entity<D,S extends GraphQlTester.Entity<D, S>> Contains a decoded entity and provides options to assert it.Contains a List of decoded entities and provides options to assert them.Declare options to filter out expected errors or inspect all errors and verify there are no unexpected errors.Options available to assert the response values at the current path.GraphQlTester.Request<T extends GraphQlTester.Request<T>>Declare options to gather input for a GraphQL request and execute it.Declare options to check the data and errors of a GraphQL response.Declare options available to assert a GraphQL Subscription response.Declare options to switch to different part of the GraphQL response.GraphQL over HTTP tester that usesWebTestClientand supports tests with or without a running server, depending on howWebTestClientis configured.HttpGraphQlTester.Builder<B extends HttpGraphQlTester.Builder<B>>Builder for the GraphQL over HTTP tester.GraphQL over RSocket tester that usesRSocketRequester.RSocketGraphQlTester.Builder<B extends RSocketGraphQlTester.Builder<B>>Builder for a GraphQL over RSocket tester.Server-side tester, without a client, that executes requests through aWebGraphQlHandler.WebGraphQlTester.Builder<B extends WebGraphQlTester.Builder<B>>Common builder for WebGraphQlTesterextensions.GraphQL over WebSocket client that usesWebSocketClient.WebSocketGraphQlTester.Builder<B extends WebSocketGraphQlTester.Builder<B>>Builder for a GraphQL over WebSocket tester.