au.com.dius:pact-jvm-consumer-specs2_2.10:2.0.6

Group / Artifact / Version au.com.dius / pact-jvm-consumer-specs2_2.10 / 2.0.6
Namepact-jvm-consumer-specs2_2.10
Descriptionpact-jvm-consumer-specs2 ======================== ## Specs2 Bindings for the pact-jvm library ## Dependency In the root folder of your project in build.sbt add the line: ``` libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "2.0.6" ``` ## Usage To author a test, extend `PactSpec` Here is a simple example: ``` import au.com.dius.pact.consumer.PactSpec class ExamplePactSpec extends PactSpec { val consumer = "My Consumer" val provider = "My Provider" uponReceiving("a request for foo") .matching(path = "/foo") .willRespondWith(body = "{}") .during { providerConfig => ConsumerService(providerConfig.url).simpleGet("/foo") must beEqualTo(200, Some("{}")).await } } ``` This spec will be run along with the rest of your specs2 unit tests and will output your pact json to ``` /target/pacts/_.json ```
Last modified2014-09-23 10:26:24 UTC
URL https://github.com/DiUS/pact-jvm
Repository URL https://oss.sonatype.org/content/repositories/releases/au/com/dius/pact-jvm-consumer-specs2_2.10/2.0.6/
Packaging jar
POM File View
Effective POM File View
Dependency tag
<dependency>
  <groupId>au.com.dius</groupId>
  <artifactId>pact-jvm-consumer-specs2_2.10</artifactId>
  <version>2.0.6</version>
</dependency>
'au.com.dius:pact-jvm-consumer-specs2_2.10:jar:2.0.6'
<dependency org="au.com.dius" name="pact-jvm-consumer-specs2_2.10" rev="2.0.6" />
@Grapes(@Grab(group='au.com.dius', module='pact-jvm-consumer-specs2_2.10', version='2.0.6'))
compile 'au.com.dius:pact-jvm-consumer-specs2_2.10:2.0.6'
libraryDependencies += "au.com.dius" % "pact-jvm-consumer-specs2_2.10" % "2.0.6"
Repository tag
  <repository>
    <id>central</id>
    <url>http://repo1.maven.org/maven2/</url>
  </repository>
  <repository>
    <id>ibiblio.org-releases</id>
    <url>http://mirrors.ibiblio.org/maven2/</url>
  </repository>
  <repository>
    <id>sonatype-releases</id>
    <url>https://oss.sonatype.org/content/repositories/releases/</url>
  </repository>
  <repository>
    <id>sonatype-staging</id>
    <url>https://oss.sonatype.org/content/repositories/staging/</url>
  </repository>
  <repository>
    <id>spring-milestones</id>
    <url>http://repo.spring.io/libs-milestone/</url>
  </repository>
  <repository>
    <id>spring-plugin-releases</id>
    <url>http://repo.spring.io/plugins-release/</url>
  </repository>
  <repository>
    <id>spring-releases</id>
    <url>http://repo.spring.io/libs-release-remote/</url>
  </repository>
Packages

au.com.dius.pact.consumer