Class IntegrationTestContextBuilder


  • public final class IntegrationTestContextBuilder
    extends java.lang.Object
    Builder for creating IntegrationTestContext instances.
    • Constructor Detail

      • IntegrationTestContextBuilder

        public IntegrationTestContextBuilder()
    • Method Detail

      • getPublishUrl

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

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

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

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

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

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

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

        @NotNull
        public @NotNull IntegrationTestContextBuilder extension​(@NotNull
                                                                @NotNull java.lang.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 java.time.Duration getHttpConnectTimeout()
        Returns:
        HTTP connect timeout
      • httpConnectTimeout

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

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

        @NotNull
        public @NotNull IntegrationTestContextBuilder httpRequestTimeout​(@NotNull
                                                                         @NotNull java.time.Duration value)
        Parameters:
        value - HTTP request timeout
        Returns:
        this