Download all versions of pact-jvm-consumer-specs2_2.12 JAR files with all dependencies
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.6.2)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.6.2
Last update 17. February 2019
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.6.2
Last update 17. February 2019
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.6.1)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.6.1
Last update 16. December 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.6.1
Last update 16. December 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.6.0)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.6.0
Last update 02. December 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.6.0
Last update 02. December 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.5.24)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.5.24
Last update 04. November 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.5.24
Last update 04. November 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.6.0-rc.1)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.6.0-rc.1
Last update 21. October 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.6.0-rc.1
Last update 21. October 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.5.23)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.5.23
Last update 23. September 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.5.23
Last update 23. September 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.6.0-rc.0)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.6.0-rc.0
Last update 22. September 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.6.0-rc.0
Last update 22. September 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.5.22)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.5.22
Last update 09. September 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.5.22
Last update 09. September 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.5.21)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.5.21
Last update 12. August 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.5.21
Last update 12. August 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
pact-jvm-consumer-specs2_2.12 from group au.com.dius (version 3.5.20)
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:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.11"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.11"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
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
```
# Forcing pact files to be overwritten (3.6.5+)
By default, when the pact file is written, it will be merged with any existing pact file. To force the file to be
overwritten, set the Java system property `pact.writer.overwrite` to `true`.
0 downloads
Artifact pact-jvm-consumer-specs2_2.12
Group au.com.dius
Version 3.5.20
Last update 28. July 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.5.20
Last update 28. July 2018
Tags: using test wrapper beequalto import along quot groups these groovy providerconfig project http will pactspec examplepactspec some 1000 spec google simple line build 2t6sbp4ojei tests dependencies note https define specs2_2 spray resolve spec2 folder simpleget library body users client instructions root consumer willrespondwith must dependency apos request milliseconds librarydependencies follow alongside extends here class code incompatibility requires that pact matching await override called gradle example rest output this result forum consumerservice ajlnjuakprsj bindings uponreceiving scala withconsumertest author json path dispatch between specs2 with your into problem provider testcompile unit duration source there target service specification usage first also user pacts dius found
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-consumer, json, specs2-core_2.12, async-http-client, scala-java8-compat_2.12,
There are maybe transitive dependencies!
Page 4 from 3 (items total 57)