Interface GraphQlTester.Subscription

Enclosing interface:
GraphQlTester

public static interface GraphQlTester.Subscription
Declare options available to assert a GraphQL Subscription response.
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Flux<GraphQlTester.Response>
    Return a Flux of GraphQlTester.Response instances, each representing an individual subscription event.
    default <T> reactor.core.publisher.Flux<T>
    toFlux(String path, Class<T> entityType)
    Return a Flux of entities converted from some part of the data in each subscription event.
  • Method Details

    • toFlux

      default <T> reactor.core.publisher.Flux<T> toFlux(String path, Class<T> entityType)
      Return a Flux 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 event
      entityType - the type to convert data to
      Returns:
      a Flux of entities that can be further inspected, e.g. with reactor.test.StepVerifier
    • toFlux

      reactor.core.publisher.Flux<GraphQlTester.Response> toFlux()
      Return a Flux of GraphQlTester.Response instances, each representing an individual subscription event.
      Returns:
      a Flux of ResponseSpec instances that can be further inspected, e.g. with reactor.test.StepVerifier