ProviderInfoBuilder

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(name: String, protocol: String, host: String, port: Int, path: String, pactSource: PactSource): ProviderInfoBuilder
def apply(name: String, providerUrl: URL, 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

def apply(name: String, pactSource: PactSource): ProviderInfoBuilder

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")