object ProviderInfoBuilder
- Companion:
- class
Value members
Concrete methods
def apply(name: String, protocol: String, host: String, port: Int, path: String, pactSource: PactSource): ProviderInfoBuilder
Create a ProviderInfoBuilder by providing a java.net.URL rather than specifying the URL components separately
Create a ProviderInfoBuilder by providing a java.net.URL rather than specifying the URL components separately
Auxiliary constructor that provides some common defaults for the the mock provider address
Auxiliary constructor that provides some common defaults for the the mock provider address
Example usage:
ProviderInfoBuilder(
name = "Provider Service",
pactSource = FileSource("Consumer Service" -> new File("./pacts/pact.json"))
).withPort(80)
.withStateChangeEndpoint("setup")