Package org.springframework.graphql.test.tester
@NonNullApi
@NonNullFields
package org.springframework.graphql.test.tester
GraphQL client testing support.
-
ClassDescriptionBase class for extensions of
GraphQlTester
that mainly assist with building the underlying transport, but otherwise delegate to the defaultGraphQlTester
implementation for actual request execution.AbstractGraphQlTesterBuilder<B extends AbstractGraphQlTesterBuilder<B>>Abstract, base class for transport specificGraphQlTester.Builder
implementations.Default implementation ofRSocketGraphQlTester.Builder
that wraps anRSocketGraphQlClient.Builder
.GraphQlTester
that executes requests through anExecutionGraphQlService
on the server side, without a client.DefaultExecutionGraphQlServiceTester.Builder
implementation.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 aGraphQlTester
instance.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 usesWebTestClient
and supports tests with or without a running server, depending on howWebTestClient
is 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 WebGraphQlTester
extensions.GraphQL over WebSocket client that usesWebSocketClient
.WebSocketGraphQlTester.Builder<B extends WebSocketGraphQlTester.Builder<B>>Builder for a GraphQL over WebSocket tester.