Class BuilderBasedWebTestClientFactory

java.lang.Object
io.restassured.module.webtestclient.internal.BuilderBasedWebTestClientFactory
All Implemented Interfaces:
WebTestClientFactory

public class BuilderBasedWebTestClientFactory extends Object implements WebTestClientFactory
  • Constructor Details

    • BuilderBasedWebTestClientFactory

      public BuilderBasedWebTestClientFactory(org.springframework.test.web.reactive.server.WebTestClient.Builder builder)
  • Method Details

    • build

      public org.springframework.test.web.reactive.server.WebTestClient build(WebTestClientConfig webTestClientConfig)
      Description copied from interface: WebTestClientFactory
      Builds and returns a WebTestClient instance based on provided configuration
      Specified by:
      build in interface WebTestClientFactory
      Parameters:
      webTestClientConfig - configuration to be used during WebTestClient instantiation
      Returns:
      a WebTestClient instance
    • isAssigned

      public boolean isAssigned()
      Description copied from interface: WebTestClientFactory
      Checks if underlying WebTestClient or WebTestClient.Builder is not null
      Specified by:
      isAssigned in interface WebTestClientFactory
      Returns:
      verification result