Class IntegrationTestContextBuilder
- java.lang.Object
-
- io.wcm.siteapi.integrationtestsupport.IntegrationTestContextBuilder
-
public final class IntegrationTestContextBuilder extends java.lang.Object
Builder for creatingIntegrationTestContext
instances.
-
-
Constructor Summary
Constructors Constructor Description IntegrationTestContextBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull IntegrationTestContextBuilder
apiVersion(@NotNull java.lang.String value)
@NotNull IntegrationTestContext
build()
@NotNull IntegrationTestContextBuilder
extension(@NotNull java.lang.String value)
java.lang.String
getApiVersion()
@NotNull java.lang.String
getExtension()
@NotNull java.time.Duration
getHttpConnectTimeout()
@NotNull java.time.Duration
getHttpRequestTimeout()
@Nullable java.lang.String
getPublishUrl()
@NotNull java.lang.String
getSelector()
@NotNull io.wcm.siteapi.openapi.validator.OpenApiSpecVersions
getSpecVersions()
@NotNull IntegrationTestContextBuilder
httpConnectTimeout(@NotNull java.time.Duration value)
@NotNull IntegrationTestContextBuilder
httpRequestTimeout(@NotNull java.time.Duration value)
@NotNull IntegrationTestContextBuilder
publishUrl(@NotNull java.lang.String value)
@NotNull IntegrationTestContextBuilder
selector(@NotNull java.lang.String value)
@NotNull IntegrationTestContextBuilder
specVersions(@NotNull io.wcm.siteapi.openapi.validator.OpenApiSpecVersions value)
-
-
-
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
-
build
@NotNull public @NotNull IntegrationTestContext build()
- Returns:
- Integration test context
-
-