Interface GraphQlTester.Subscription
- Enclosing interface:
- GraphQlTester
public static interface GraphQlTester.Subscription
Declare options available to assert a GraphQL Subscription response.
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<GraphQlTester.Response>
toFlux()
Return aFlux
ofGraphQlTester.Response
instances, each representing an individual subscription event.default <T> reactor.core.publisher.Flux<T>
Return aFlux
of entities converted from some part of the data in each subscription event.
-
Method Details
-
toFlux
Return aFlux
of entities converted from some part of the data in each subscription event.- Type Parameters:
T
- the entity type- Parameters:
path
- a path into the data of each subscription evententityType
- the type to convert data to- Returns:
- a
Flux
of entities that can be further inspected, e.g. withreactor.test.StepVerifier
-
toFlux
reactor.core.publisher.Flux<GraphQlTester.Response> toFlux()Return aFlux
ofGraphQlTester.Response
instances, each representing an individual subscription event.- Returns:
- a
Flux
ofResponseSpec
instances that can be further inspected, e.g. withreactor.test.StepVerifier
-