Interface WebGraphQlTester.Builder<B extends WebGraphQlTester.Builder<B>>

Type Parameters:
B - the type of builder
All Superinterfaces:
GraphQlTester.Builder<B>
All Known Subinterfaces:
HttpGraphQlTester.Builder<B>, WebSocketGraphQlTester.Builder<B>
Enclosing interface:
WebGraphQlTester

public static interface WebGraphQlTester.Builder<B extends WebGraphQlTester.Builder<B>> extends GraphQlTester.Builder<B>
Common builder for Web GraphQlTester extensions.
  • Method Details

    • url

      B url(String url)
      Set the GraphQL endpoint URL as a String.
      Parameters:
      url - the url to send HTTP requests to or connect over WebSocket
    • url

      B url(URI url)
      Set the GraphQL endpoint URL.
      Parameters:
      url - the url to send HTTP requests to or connect over WebSocket
    • header

      B header(String name, String... values)
      Add the given header to HTTP requests or to the WebSocket handshake request.
      Parameters:
      name - the header name
      values - the header values
    • headers

      B headers(Consumer<HttpHeaders> headersConsumer)
      Variant of header(String, String...) that provides access to the underlying headers to inspect or modify directly.
      Parameters:
      headersConsumer - a function that consumes the HttpHeaders
    • codecConfigurer

      B codecConfigurer(Consumer<CodecConfigurer> codecsConsumer)
      Configure the underlying CodecConfigurer to use for all JSON encoding and decoding needs.
      Parameters:
      codecsConsumer - a consumer that customizes the configured codecs
    • build

      Build a WebGraphQlTester instance.
      Specified by:
      build in interface GraphQlTester.Builder<B extends WebGraphQlTester.Builder<B>>
      Returns:
      the created instance