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 ``` ✓ Download JAR pact-jvm-consumer-specs2_2.11 3.5.24 ✓ With dependencies ✓ Source of pact-jvm-consumer-specs2_2.11 ☄ One click! ☄" />
All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Download pact-jvm-consumer-specs2_2.11 JAR 3.5.24 with all dependencies


pact-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/<Consumer>_<Provider>.json ```

Files of the artifact pact-jvm-consumer-specs2_2.11 version 3.5.24 from the group au.com.dius.

The newest version!
Show more of this group  Show more artifacts with this name
Show all versions of pact-jvm-consumer-specs2_2.11 Show documentation

Please rate this JAR file. Is it a good library?

0 downloads

Source code of pact-jvm-consumer-specs2_2.11 version 3.5.24

Please wait ...