spring-graphql-test/src/main/java/org/springframework/graphql/test/tester/AbstractGraphQlTesterBuilder.java
/**
	 * For cases where the Tester needs the {@link GraphQlTransport}, we can't use
	 * transports directly since they are package private, but we can adapt the corresponding
	 * {@link GraphQlClient} and adapt it to {@code GraphQlTransport}.
	 */
For cases where the Tester needs the  GraphQlTransport, we can't use
transports directly since they are package private, but we can adapt the corresponding
GraphQlClient and adapt it to  GraphQlTransport.
For cases where the Tester needs the GraphQlTransport we can ' t use transports directly since they are package private but we can adapt the corresponding GraphQlClient and adapt it to GraphQlTransport .
protected static GraphQlTransport asTransport(GraphQlClient client) {
		return new GraphQlTransport() {
			@Override
			public Mono<GraphQlResponse> execute(GraphQlRequest request) {
				return client
						.document(request.getDocument())
						.operationName(request.getOperationName())
						.variables(request.getVariables())
						.execute()
						.cast(GraphQlResponse.class);
			}
			@Override
			public Flux<GraphQlResponse> executeSubscription(GraphQlRequest request) {
				return client
						.document(request.getDocument())
						.operationName(request.getOperationName())
						.variables(request.getVariables())
						.executeSubscription()
						.cast(GraphQlResponse.class);
			}
		};
	}
protected static GraphQlTransport asTransport ( GraphQlClient client ) { return new GraphQlTransport ( ) { @ Override public Mono < GraphQlResponse > execute ( GraphQlRequest request ) { return client . document ( request . getDocument ( ) ) . operationName ( request . getOperationName ( ) ) . variables ( request . getVariables ( ) ) . execute ( ) . cast ( GraphQlResponse . class ) ; } @ Override public Flux < GraphQlResponse > executeSubscription ( GraphQlRequest request ) { return client . document ( request . getDocument ( ) ) . operationName ( request . getOperationName ( ) ) . variables ( request . getVariables ( ) ) . executeSubscription ( ) . cast ( GraphQlResponse . class ) ; } } ; }
For cases where the Tester needs the {@link GraphQlTransport}, we can't use
 transports directly since they are package private, but we can adapt the corresponding
 {@link GraphQlClient} and adapt it to {@code GraphQlTransport}.
For cases where the Tester needs the { @link GraphQlTransport } we can ' t use transports directly since they are package private but we can adapt the corresponding { @link GraphQlClient } and adapt it to { @code GraphQlTransport } .