| Package | Description |
|---|---|
| com.atlassian.ta.wiremockpactgenerator |
| Modifier and Type | Method and Description |
|---|---|
static WireMockPactGenerator.Builder |
WireMockPactGenerator.builder(String consumerName,
String providerName) |
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withIncludeNotConfiguredResponses(boolean includeNotConfiguredResponses)
When a request does not match any stubbing in WireMock a default 404 response is generated.
|
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withRequestHeaderIncludeList(String... httpHeaders)
Specify what request headers should be recorded in the pact interaction (all headers if unset).
|
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withRequestHeaderWhitelist(String... httpHeaders)
Deprecated.
method was renamed, use
withRequestHeaderIncludeList(String...) instead. |
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withRequestPathBlacklist(String... regexPatterns)
Deprecated.
method was renamed, use
withRequestPathExcludeList(String...) instead. |
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withRequestPathExcludeList(String... regexPatterns)
Specify path patterns of requests that should not be recorded as pact interactions.
|
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withRequestPathIncludeList(String... regexPatterns)
Specify path patterns of requests that should be recorded as pact interactions (everything if unset).
|
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withRequestPathWhitelist(String... regexPatterns)
Deprecated.
method was renamed, use
withRequestPathIncludeList(String...) instead. |
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withResponseHeaderIncludeList(String... httpHeaders)
Specify what response headers should be recorded in the pact interaction (all headers if unset).
|
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withResponseHeaderWhitelist(String... httpHeaders)
Deprecated.
method was renamed, use
withResponseHeaderIncludeList(String...) instead. |
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withStrictApplicationJson(boolean strictApplicationJson)
According to [RFC-4627](https://tools.ietf.org/html/rfc4627) Section 2.
|
WireMockPactGenerator.Builder |
WireMockPactGenerator.Builder.withUnexpectedErrorHandler(Consumer<RuntimeException> unexpectedErrorHandler)
There's no mechanism to instruct WireMock to fail when an unexpected error occurs in WireMockPactGenerator
for that reason the default behaviour is to terminate the Java process which might be too intrusive.
|
Copyright © 2017–2022 Atlassian. All rights reserved.