Interface RSocketGraphQlTester
- All Superinterfaces:
GraphQlTester
GraphQL over RSocket tester that uses
RSocketRequester
.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Builder for a GraphQL over RSocket tester.Nested classes/interfaces inherited from interface org.springframework.graphql.test.tester.GraphQlTester
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic RSocketGraphQlTester.Builder<?>
builder()
Start with a newRSocketRequester.Builder
customized for GraphQL, setting thedataMimeType
to"application/graphql+json"
and adding JSON codecs.static RSocketGraphQlTester.Builder<?>
builder
(RSocketRequester.Builder requesterBuilder) Start with a givenbuilder()
.mutate()
Create a builder initialized from the configuration of "this" tester.reactor.core.publisher.Mono<Void>
start()
Start the RSocket session.reactor.core.publisher.Mono<Void>
stop()
Stop the RSocket session.Methods inherited from interface org.springframework.graphql.test.tester.GraphQlTester
document, documentName
-
Method Details
-
start
reactor.core.publisher.Mono<Void> start()Start the RSocket session.- Returns:
Mono
that completes when the underlying session is started
-
stop
reactor.core.publisher.Mono<Void> stop()Stop the RSocket session.- Returns:
Mono
that completes when the underlying session is closedNote that currently this method not differed and does not wait, see
RSocketGraphQlClient.stop()
-
mutate
RSocketGraphQlTester.Builder<?> mutate()Description copied from interface:GraphQlTester
Create a builder initialized from the configuration of "this" tester. Use it to build a new, independently configured instance.- Specified by:
mutate
in interfaceGraphQlTester
-
builder
Start with a newRSocketRequester.Builder
customized for GraphQL, setting thedataMimeType
to"application/graphql+json"
and adding JSON codecs. -
builder
Start with a givenbuilder()
.- Parameters:
requesterBuilder
- the builder to use as a baseline
-