pact-jvm-consumer-specs2_2.11 pact-jvm-consumer-specs2_2.11

Group au.com.dius
描述 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
Packaging jar
Size 13.71 KB
文件 pom jar
网址 https://github.com/DiUS/pact-jvm
发布时间 2014-11-24 16:10

dependencies

Group Artifact Version
net.databinder unfiltered-netty-server_2.11 0.8.2
net.databinder.dispatch dispatch-core_2.11 0.11.0
junit junit 4.11
org.scala-lang scala-library 2.11.2
org.specs2 specs2_2.11 2.3.13
org.json4s json4s-native_2.11 3.2.10
org.json4s json4s-jackson_2.11 3.2.10
org.scala-lang.modules scala-xml_2.11 1.0.2
com.typesafe.scala-logging scala-logging-slf4j_2.11 2.1.2
au.com.dius pact-jvm-consumer_2.11 2.1.6
org.mockito mockito-all 1.9.5
org.slf4j slf4j-api 1.7.5

developers

thetrav Travis Dixon
rholshausen Ronald Holshausen
kenbot Ken Scambler

licenses

Apache 2 http://www.apache.org/licenses/LICENSE-2.0.txt
索引仓库
仓库 个数
Central 592045
7338221