Class IntegrationTestContextBuilder

java.lang.Object
io.wcm.siteapi.integrationtestsupport.IntegrationTestContextBuilder

public final class IntegrationTestContextBuilder extends Object
Builder for creating IntegrationTestContext instances.
  • Constructor Details

    • IntegrationTestContextBuilder

      public IntegrationTestContextBuilder()
  • Method Details

    • getPublishUrl

      @Nullable public @Nullable String getPublishUrl()
      Returns:
      Publish URL
    • publishUrl

      @NotNull public @NotNull IntegrationTestContextBuilder publishUrl(@NotNull @NotNull String value)
      Parameters:
      value - Publish URL
      Returns:
      this
    • getSelector

      @NotNull public @NotNull String getSelector()
      Returns:
      Site API selector
    • selector

      @NotNull public @NotNull IntegrationTestContextBuilder selector(@NotNull @NotNull String value)
      Parameters:
      value - Site API selector
      Returns:
      this
    • getApiVersion

      public String getApiVersion()
      Returns:
      Site API version or empty string
    • apiVersion

      @NotNull public @NotNull IntegrationTestContextBuilder apiVersion(@NotNull @NotNull String value)
      Parameters:
      value - Site API version or empty string
      Returns:
      this
    • getExtension

      @NotNull public @NotNull String getExtension()
      Returns:
      Site API extension
    • extension

      @NotNull public @NotNull IntegrationTestContextBuilder extension(@NotNull @NotNull String value)
      Parameters:
      value - Site API extension
      Returns:
      this
    • getSpecVersions

      @NotNull public @NotNull io.wcm.siteapi.openapi.validator.OpenApiSpecVersions getSpecVersions()
      Returns:
      Open API Spec versions to be used for validation.
    • specVersions

      @NotNull public @NotNull IntegrationTestContextBuilder specVersions(@NotNull @NotNull io.wcm.siteapi.openapi.validator.OpenApiSpecVersions value)
      Parameters:
      value - Open API Spec versions to be used for validation.
      Returns:
      this
    • getHttpConnectTimeout

      @NotNull public @NotNull Duration getHttpConnectTimeout()
      Returns:
      HTTP connect timeout
    • httpConnectTimeout

      @NotNull public @NotNull IntegrationTestContextBuilder httpConnectTimeout(@NotNull @NotNull Duration value)
      Parameters:
      value - HTTP connect timeout
      Returns:
      this
    • getHttpRequestTimeout

      @NotNull public @NotNull Duration getHttpRequestTimeout()
      Returns:
      HTTP request timeout
    • httpRequestTimeout

      @NotNull public @NotNull IntegrationTestContextBuilder httpRequestTimeout(@NotNull @NotNull Duration value)
      Parameters:
      value - HTTP request timeout
      Returns:
      this
    • build

      @NotNull public @NotNull IntegrationTestContext build()
      Returns:
      Integration test context