ScalaPactDescription

class ScalaPactDescription(strict: Boolean, consumer: String, provider: String, sslContextName: Option[String], interactions: List[ScalaPactInteraction])
class Object
trait Matchable
class Any

Value members

Concrete methods

Adds interactions to the Pact. Interactions should be created using the helper object 'interaction'

Adds interactions to the Pact. Interactions should be created using the helper object 'interaction'

Value Params
interaction

[ScalaPactInteraction] definition

Returns

[ScalaPactDescription] to allow the builder to continue

def runConsumerTest[A](test: ScalaPactMockConfig => A)(implicit options: ScalaPactOptions, sslContextMap: SslContextMap, pactReader: IPactReader, pactWriter: IPactWriter, httpClientBuilder: IScalaPactHttpClientBuilder, pactStubber: IPactStubber): A
def startServer(implicit httpClientBuilder: IScalaPactHttpClientBuilder, options: ScalaPactOptions, pactReader: IPactReader, pactWriter: IPactWriter, pactStubber: IPactStubber): ScalaPactMockServer

Starts the ScalaPactMockServer, which tests can then be run against. It is important that the server be shutdown when no longer needed by invoking stop().

Starts the ScalaPactMockServer, which tests can then be run against. It is important that the server be shutdown when no longer needed by invoking stop().

def writePactsToFile(implicit options: ScalaPactOptions, pactWriter: IPactWriter): Unit

Writes pacts described by this ScalaPactDescription to file without running any consumer tests

Writes pacts described by this ScalaPactDescription to file without running any consumer tests