Title:
pact-jvm-consumer-specs2_2.10
Group ID:
au.com.dius
Artifact ID:
pact-jvm-consumer-specs2_2.10
Version:
2.0.6
Last modified:
23.09.2014 10:26
Packaging:
jar
Name:
pact-jvm-consumer-specs2_2.10
Description:
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
```
Vendor:
au.com.dius
Size:
15.0 KB
Download:
https://repo.maven.apache.org/maven2/au/com/dius/pact-jvm-consumer-specs2_2.10/2.0.6/pact-jvm-consumer-specs2_2.10-2.0.6.jar
POM:
Show
hide
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>au.com.dius</groupId>
<artifactId>pact-jvm-consumer-specs2_2.10</artifactId>
<version>2.0.6</version>
<name>pact-jvm-consumer-specs2_2.10</name>
<description>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
```
</description>
<url>https://github.com/DiUS/pact-jvm</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>thetrav</id>
<name>Travis Dixon</name>
<email>the.trav@gmail.com</email>
</developer>
<developer>
<id>rholshausen</id>
<name>Ronald Holshausen</name>
<email>rholshausen@dius.com.au</email>
</developer>
<developer>
<id>kenbot</id>
<name>Ken Scambler</name>
<email>ken.scambler@gmail.com</email>
</developer>
</developers>
<scm>
<connection>https://github.com/DiUS/pact-jvm.git</connection>
<url>https://github.com/DiUS/pact-jvm</url>
</scm>
<dependencies>
<dependency>
<groupId>com.typesafe.scala-logging</groupId>
<artifactId>scala-logging-slf4j_2.10</artifactId>
<version>2.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.json4s</groupId>
<artifactId>json4s-native_2.10</artifactId>
<version>3.2.10</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.databinder.dispatch</groupId>
<artifactId>dispatch-core_2.10</artifactId>
<version>0.11.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>au.com.dius</groupId>
<artifactId>pact-jvm-consumer_2.10</artifactId>
<version>2.0.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.databinder</groupId>
<artifactId>unfiltered-netty-server_2.10</artifactId>
<version>0.7.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.json4s</groupId>
<artifactId>json4s-jackson_2.10</artifactId>
<version>3.2.10</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.10.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.specs2</groupId>
<artifactId>specs2_2.10</artifactId>
<version>2.3.13</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Maven:
<dependency>
<groupId>au.com.dius </groupId>
<artifactId>pact-jvm-consumer-specs2_2.10 </artifactId>
<version>2.0.6 </version>
</dependency>
Gradle:
au.com.dius :pact-jvm-consumer-specs2_2.10 :2.0.6
Contained classes:
Show all
Contained classes:
Dependency Graph:
Show
Less
More