Class IntegrationTestContextBuilder
java.lang.Object
io.wcm.siteapi.integrationtestsupport.IntegrationTestContextBuilder
Builder for creating
IntegrationTestContext
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull IntegrationTestContextBuilder
apiVersion
(@NotNull String value) @NotNull IntegrationTestContext
build()
@NotNull IntegrationTestContextBuilder
@NotNull String
@NotNull Duration
@NotNull Duration
@Nullable String
@NotNull String
@NotNull io.wcm.siteapi.openapi.validator.OpenApiSpecVersions
@NotNull IntegrationTestContextBuilder
httpConnectTimeout
(@NotNull Duration value) @NotNull IntegrationTestContextBuilder
httpRequestTimeout
(@NotNull Duration value) @NotNull IntegrationTestContextBuilder
publishUrl
(@NotNull String value) @NotNull IntegrationTestContextBuilder
@NotNull IntegrationTestContextBuilder
specVersions
(@NotNull io.wcm.siteapi.openapi.validator.OpenApiSpecVersions value)
-
Constructor Details
-
IntegrationTestContextBuilder
public IntegrationTestContextBuilder()
-
-
Method Details
-
getPublishUrl
- Returns:
- Publish URL
-
publishUrl
- Parameters:
value
- Publish URL- Returns:
- this
-
getSelector
- Returns:
- Site API selector
-
selector
- Parameters:
value
- Site API selector- Returns:
- this
-
getApiVersion
- Returns:
- Site API version or empty string
-
apiVersion
- Parameters:
value
- Site API version or empty string- Returns:
- this
-
getExtension
- Returns:
- Site API extension
-
extension
- 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
- Returns:
- HTTP connect timeout
-
httpConnectTimeout
@NotNull public @NotNull IntegrationTestContextBuilder httpConnectTimeout(@NotNull @NotNull Duration value) - Parameters:
value
- HTTP connect timeout- Returns:
- this
-
getHttpRequestTimeout
- Returns:
- HTTP request timeout
-
httpRequestTimeout
@NotNull public @NotNull IntegrationTestContextBuilder httpRequestTimeout(@NotNull @NotNull Duration value) - Parameters:
value
- HTTP request timeout- Returns:
- this
-
build
- Returns:
- Integration test context
-