All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.com.dius.pact.consumer.ConsumerPactRunner.kt Maven / Gradle / Ivy

package au.com.dius.pact.consumer

import au.com.dius.pact.model.MockProviderConfig
import au.com.dius.pact.model.RequestResponsePact

interface PactTestRun {
  @Throws(Throwable::class)
  fun run(mockServer: MockServer, context: PactTestExecutionContext?)
}

fun runConsumerTest(pact: RequestResponsePact, config: MockProviderConfig, test: PactTestRun): PactVerificationResult {
  val server = mockServer(pact, config)
  return server.runAndWritePact(pact, config.pactVersion, test)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy