Download all versions of pact-jvm-consumer-junit_2.10 JAR files with all dependencies
pact-jvm-consumer-junit_2.10 from group au.com.dius (version 2.0.4)
pact-jvm-consumer-junit
=======================
Bindings for the junit library
##Dependency
The library is available on maven central using:
group-id = `au.com.dius`
artifact-id = `pact-jvm-consumer-junit_2.10`
version-id = `2.0.2`
##Usage
To write a pact spec extend ConsumerPactTest
Here is an example:
```
import au.com.dius.pact.model.PactFragment;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
public class ExampleJavaConsumerPactTest extends ConsumerPactTest {
@Override
protected PactFragment createFragment(ConsumerPactBuilder.PactDslWithProvider builder) {
Map<String, String> headers = new HashMap<String, String>();
headers.put("testreqheader", "testreqheadervalue");
return builder
.given("test state") // NOTE: Using provider states are optional, you can leave it out
.uponReceiving("java test interaction")
.path("/")
.method("GET")
.headers(headers)
.body("{\"test\":true}")
.willRespondWith()
.status(200)
.headers(headers)
.body("{\"responsetest\":true}").toFragment();
}
@Override
protected String providerName() {
return "test_provider";
}
@Override
protected String consumerName() {
return "test_consumer";
}
@Override
protected void runTest(String url) {
try {
assertEquals(new ConsumerClient(url).get("/"), "{\"responsetest\":true}");
} catch (Exception e) {
// NOTE: if you want to see any pact failure, do not throw an exception here. This should be
// fixed at some point (see Issue #40 https://github.com/DiUS/pact-jvm/issues/40)
throw new RuntimeException(e);
}
}
}
```
## Debugging pact failures
When the test runs, Pact will start a mock provider that will listen for requests and match them against the expectations
you setup in `createFragment`. If the request does not match, it will return a 500 error response.
Each request received and the generated response is logged using [SLF4J](http://www.slf4j.org/). Just enable debug level
logging for au.com.dius.pact.consumer.UnfilteredMockProvider. Most failures tend to be mismatched headers or bodies.
Artifact pact-jvm-consumer-junit_2.10
Group au.com.dius
Version 2.0.4
Last update 18. September 2014
Tags: maven using test tend received fixed junit_2 given consumername expectations import central static pactdslwithprovider builder interaction available consumerclient http start them will bodies each some runtimeexception spec examplejavaconsumerpacttest states most logged debug version providername leave write debugging listen want note https consumerpactbuilder just failures mock return void true should point artifact runtest string library assert method slf4j runs public headers body exception enable pactfragment consumer willrespondwith unfilteredmockprovider dependency requests level testreqheader request optional when test_consumer extends status assertequals class here logging that failure pact generated override against issues example match this util does model bindings test_provider issue catch uponreceiving state response throw protected setup path testreqheadervalue error consumerpacttest extend provider junit responsetest mismatched createfragment usage java hashmap group github tofragment dius
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, slf4j-api, json4s-jackson_2.10, scala-library, scala-logging-slf4j_2.10, pact-jvm-consumer_2.10, dispatch-core_2.10, fluent-hc, unfiltered-netty-server_2.10, junit,
There are maybe transitive dependencies!
Group au.com.dius
Version 2.0.4
Last update 18. September 2014
Tags: maven using test tend received fixed junit_2 given consumername expectations import central static pactdslwithprovider builder interaction available consumerclient http start them will bodies each some runtimeexception spec examplejavaconsumerpacttest states most logged debug version providername leave write debugging listen want note https consumerpactbuilder just failures mock return void true should point artifact runtest string library assert method slf4j runs public headers body exception enable pactfragment consumer willrespondwith unfilteredmockprovider dependency requests level testreqheader request optional when test_consumer extends status assertequals class here logging that failure pact generated override against issues example match this util does model bindings test_provider issue catch uponreceiving state response throw protected setup path testreqheadervalue error consumerpacttest extend provider junit responsetest mismatched createfragment usage java hashmap group github tofragment dius
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, slf4j-api, json4s-jackson_2.10, scala-library, scala-logging-slf4j_2.10, pact-jvm-consumer_2.10, dispatch-core_2.10, fluent-hc, unfiltered-netty-server_2.10, junit,
There are maybe transitive dependencies!
pact-jvm-consumer-junit_2.10 from group au.com.dius (version 2.0.3)
pact-jvm-consumer-junit
=======================
Bindings for the junit library
##Dependency
The library is available on maven central using:
group-id = `au.com.dius`
artifact-id = `pact-jvm-consumer-junit_2.10`
version-id = `2.0.2`
##Usage
To write a pact spec extend ConsumerPactTest
Here is an example:
```
import au.com.dius.pact.model.PactFragment;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
public class ExampleJavaConsumerPactTest extends ConsumerPactTest {
@Override
protected PactFragment createFragment(ConsumerPactBuilder.PactDslWithProvider builder) {
Map<String, String> headers = new HashMap<String, String>();
headers.put("testreqheader", "testreqheadervalue");
return builder
.given("test state") // NOTE: Using provider states are optional, you can leave it out
.uponReceiving("java test interaction")
.path("/")
.method("GET")
.headers(headers)
.body("{\"test\":true}")
.willRespondWith()
.status(200)
.headers(headers)
.body("{\"responsetest\":true}").toFragment();
}
@Override
protected String providerName() {
return "test_provider";
}
@Override
protected String consumerName() {
return "test_consumer";
}
@Override
protected void runTest(String url) {
try {
assertEquals(new ConsumerClient(url).get("/"), "{\"responsetest\":true}");
} catch (Exception e) {
// NOTE: if you want to see any pact failure, do not throw an exception here. This should be
// fixed at some point (see Issue #40 https://github.com/DiUS/pact-jvm/issues/40)
throw new RuntimeException(e);
}
}
}
```
## Debugging pact failures
When the test runs, Pact will start a mock provider that will listen for requests and match them against the expectations
you setup in `createFragment`. If the request does not match, it will return a 500 error response.
Each request received and the generated response is logged using [SLF4J](http://www.slf4j.org/). Just enable debug level
logging for au.com.dius.pact.consumer.UnfilteredMockProvider. Most failures tend to be mismatched headers or bodies.
Artifact pact-jvm-consumer-junit_2.10
Group au.com.dius
Version 2.0.3
Last update 16. August 2014
Tags: maven using test tend received fixed junit_2 given consumername expectations import central static pactdslwithprovider builder interaction available consumerclient http start them will bodies each some runtimeexception spec examplejavaconsumerpacttest states most logged debug version providername leave write debugging listen want note https consumerpactbuilder just failures mock return void true should point artifact runtest string library assert method slf4j runs public headers body exception enable pactfragment consumer willrespondwith unfilteredmockprovider dependency requests level testreqheader request optional when test_consumer extends status assertequals class here logging that failure pact generated override against issues example match this util does model bindings test_provider issue catch uponreceiving state response throw protected setup path testreqheadervalue error consumerpacttest extend provider junit responsetest mismatched createfragment usage java hashmap group github tofragment dius
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, pact-jvm-consumer_2.10, slf4j-api, json4s-jackson_2.10, scala-library, scala-logging-slf4j_2.10, dispatch-core_2.10, fluent-hc, unfiltered-netty-server_2.10, junit,
There are maybe transitive dependencies!
Group au.com.dius
Version 2.0.3
Last update 16. August 2014
Tags: maven using test tend received fixed junit_2 given consumername expectations import central static pactdslwithprovider builder interaction available consumerclient http start them will bodies each some runtimeexception spec examplejavaconsumerpacttest states most logged debug version providername leave write debugging listen want note https consumerpactbuilder just failures mock return void true should point artifact runtest string library assert method slf4j runs public headers body exception enable pactfragment consumer willrespondwith unfilteredmockprovider dependency requests level testreqheader request optional when test_consumer extends status assertequals class here logging that failure pact generated override against issues example match this util does model bindings test_provider issue catch uponreceiving state response throw protected setup path testreqheadervalue error consumerpacttest extend provider junit responsetest mismatched createfragment usage java hashmap group github tofragment dius
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, pact-jvm-consumer_2.10, slf4j-api, json4s-jackson_2.10, scala-library, scala-logging-slf4j_2.10, dispatch-core_2.10, fluent-hc, unfiltered-netty-server_2.10, junit,
There are maybe transitive dependencies!
pact-jvm-consumer-junit_2.10 from group au.com.dius (version 2.0.2)
pact-jvm-consumer-junit
=======================
Bindings for the junit library
##Dependency
The library is available on maven central using:
group-id = `au.com.dius`
artifact-id = `pact-jvm-consumer-junit_2.10`
version-id = `2.0.2`
##Usage
To write a pact spec extend ConsumerPactTest
Here is an example:
```
import au.com.dius.pact.model.PactFragment;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
public class ExampleJavaConsumerPactTest extends ConsumerPactTest {
@Override
protected PactFragment createFragment(ConsumerPactBuilder.PactDslWithProvider builder) {
Map<String, String> headers = new HashMap<String, String>();
headers.put("testreqheader", "testreqheadervalue");
return builder
.given("test state") // NOTE: Using provider states are optional, you can leave it out
.uponReceiving("java test interaction")
.path("/")
.method("GET")
.headers(headers)
.body("{\"test\":true}")
.willRespondWith()
.status(200)
.headers(headers)
.body("{\"responsetest\":true}").toFragment();
}
@Override
protected String providerName() {
return "test_provider";
}
@Override
protected String consumerName() {
return "test_consumer";
}
@Override
protected void runTest(String url) {
try {
assertEquals(new ConsumerClient(url).get("/"), "{\"responsetest\":true}");
} catch (Exception e) {
// NOTE: if you want to see any pact failure, do not throw an exception here. This should be
// fixed at some point (see Issue #40 https://github.com/DiUS/pact-jvm/issues/40)
throw new RuntimeException(e);
}
}
}
```
## Debugging pact failures
When the test runs, Pact will start a mock provider that will listen for requests and match them against the expectations
you setup in `createFragment`. If the request does not match, it will return a 500 error response.
Each request received and the generated response is logged using [SLF4J](http://www.slf4j.org/). Just enable debug level
logging for au.com.dius.pact.consumer.UnfilteredMockProvider. Most failures tend to be mismatched headers or bodies.
Artifact pact-jvm-consumer-junit_2.10
Group au.com.dius
Version 2.0.2
Last update 07. August 2014
Tags: maven using test tend received fixed junit_2 given consumername expectations import central static pactdslwithprovider builder interaction available consumerclient http start them will bodies each some runtimeexception spec examplejavaconsumerpacttest states most logged debug version providername leave write debugging listen want note https consumerpactbuilder just failures mock return void true should point artifact runtest string library assert method slf4j runs public headers body exception enable pactfragment consumer willrespondwith unfilteredmockprovider dependency requests level testreqheader request optional when test_consumer extends status assertequals class here logging that failure pact generated override against issues example match this util does model bindings test_provider issue catch uponreceiving state response throw protected setup path testreqheadervalue error consumerpacttest extend provider junit responsetest mismatched createfragment usage java hashmap group github tofragment dius
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, slf4j-api, json4s-jackson_2.10, scala-library, scala-logging-slf4j_2.10, dispatch-core_2.10, fluent-hc, pact-jvm-consumer_2.10, unfiltered-netty-server_2.10, junit,
There are maybe transitive dependencies!
Group au.com.dius
Version 2.0.2
Last update 07. August 2014
Tags: maven using test tend received fixed junit_2 given consumername expectations import central static pactdslwithprovider builder interaction available consumerclient http start them will bodies each some runtimeexception spec examplejavaconsumerpacttest states most logged debug version providername leave write debugging listen want note https consumerpactbuilder just failures mock return void true should point artifact runtest string library assert method slf4j runs public headers body exception enable pactfragment consumer willrespondwith unfilteredmockprovider dependency requests level testreqheader request optional when test_consumer extends status assertequals class here logging that failure pact generated override against issues example match this util does model bindings test_provider issue catch uponreceiving state response throw protected setup path testreqheadervalue error consumerpacttest extend provider junit responsetest mismatched createfragment usage java hashmap group github tofragment dius
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, slf4j-api, json4s-jackson_2.10, scala-library, scala-logging-slf4j_2.10, dispatch-core_2.10, fluent-hc, pact-jvm-consumer_2.10, unfiltered-netty-server_2.10, junit,
There are maybe transitive dependencies!
pact-jvm-consumer-junit_2.10 from group au.com.dius (version 2.0.1)
pact-jvm-consumer-junit
=======================
Bindings for the junit library
##Dependency
The library is available on maven central using:
group-id = `au.com.dius`
artifact-id = `pact-jvm-consumer-junit_2.10`
version-id = `2.0.0`
##Usage
To write a pact spec extend ConsumerPactTest
Here is an example:
```
import au.com.dius.pact.model.PactFragment;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
public class ExampleJavaConsumerPactTest extends ConsumerPactTest {
@Override
protected PactFragment createFragment(ConsumerPactBuilder.PactDslWithProvider builder) {
Map<String, String> headers = new HashMap<String, String>();
headers.put("testreqheader", "testreqheadervalue");
return builder
.given("test state") // NOTE: Using provider states are optional, you can leave it out
.uponReceiving("java test interaction")
.path("/")
.method("GET")
.headers(headers)
.body("{\"test\":true}")
.willRespondWith()
.status(200)
.headers(headers)
.body("{\"responsetest\":true}").toFragment();
}
@Override
protected String providerName() {
return "test_provider";
}
@Override
protected String consumerName() {
return "test_consumer";
}
@Override
protected void runTest(String url) {
try {
assertEquals(new ConsumerClient(url).get("/"), "{\"responsetest\":true}");
} catch (Exception e) {
// NOTE: if you want to see any pact failure, do not throw an exception here. This should be
// fixed at some point (see Issue #40 https://github.com/DiUS/pact-jvm/issues/40)
throw new RuntimeException(e);
}
}
}
```
## Debugging pact failures
When the test runs, Pact will start a mock provider that will listen for requests and match them against the expectations
you setup in `createFragment`. If the request does not match, it will return a 500 error response.
Each request received and the generated response is logged using [SLF4J](http://www.slf4j.org/). Just enable debug level
logging for au.com.dius.pact.consumer.UnfilteredMockProvider. Most failures tend to be mismatched headers or bodies.
Artifact pact-jvm-consumer-junit_2.10
Group au.com.dius
Version 2.0.1
Last update 06. August 2014
Tags: maven using test tend received fixed junit_2 given consumername expectations import central static pactdslwithprovider builder interaction available consumerclient http start them will bodies each some runtimeexception spec examplejavaconsumerpacttest states most logged debug version providername leave write debugging listen want note https consumerpactbuilder just failures mock return void true should point artifact runtest string library assert method slf4j runs public headers body exception enable pactfragment consumer willrespondwith unfilteredmockprovider dependency requests level testreqheader request optional when test_consumer extends status assertequals class here logging that failure pact generated override against issues example match this util does model bindings test_provider issue catch uponreceiving state response throw protected setup path testreqheadervalue error consumerpacttest extend provider junit responsetest mismatched createfragment usage java hashmap group github tofragment dius
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, slf4j-api, json4s-jackson_2.10, scala-library, pact-jvm-consumer_2.10, scala-logging-slf4j_2.10, dispatch-core_2.10, fluent-hc, unfiltered-netty-server_2.10, junit,
There are maybe transitive dependencies!
Group au.com.dius
Version 2.0.1
Last update 06. August 2014
Tags: maven using test tend received fixed junit_2 given consumername expectations import central static pactdslwithprovider builder interaction available consumerclient http start them will bodies each some runtimeexception spec examplejavaconsumerpacttest states most logged debug version providername leave write debugging listen want note https consumerpactbuilder just failures mock return void true should point artifact runtest string library assert method slf4j runs public headers body exception enable pactfragment consumer willrespondwith unfilteredmockprovider dependency requests level testreqheader request optional when test_consumer extends status assertequals class here logging that failure pact generated override against issues example match this util does model bindings test_provider issue catch uponreceiving state response throw protected setup path testreqheadervalue error consumerpacttest extend provider junit responsetest mismatched createfragment usage java hashmap group github tofragment dius
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, slf4j-api, json4s-jackson_2.10, scala-library, pact-jvm-consumer_2.10, scala-logging-slf4j_2.10, dispatch-core_2.10, fluent-hc, unfiltered-netty-server_2.10, junit,
There are maybe transitive dependencies!
pact-jvm-consumer-junit_2.10 from group au.com.dius (version 2.0.0)
pact-jvm-consumer-junit_2.10
Artifact pact-jvm-consumer-junit_2.10
Group au.com.dius
Version 2.0.0
Last update 20. July 2014
Tags: pact junit_2 consumer
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, slf4j-api, json4s-jackson_2.10, scala-library, scala-logging-slf4j_2.10, dispatch-core_2.10, fluent-hc, unfiltered-netty-server_2.10, junit, pact-jvm-consumer_2.10,
There are maybe transitive dependencies!
Group au.com.dius
Version 2.0.0
Last update 20. July 2014
Tags: pact junit_2 consumer
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 13
Dependencies automaton, json4s-native_2.10, json, commons-lang3, slf4j-api, json4s-jackson_2.10, scala-library, scala-logging-slf4j_2.10, dispatch-core_2.10, fluent-hc, unfiltered-netty-server_2.10, junit, pact-jvm-consumer_2.10,
There are maybe transitive dependencies!
pact-jvm-consumer-junit_2.10 from group au.com.dius (version 2.0-RC5)
pact-jvm-consumer-junit
Artifact pact-jvm-consumer-junit_2.10
Group au.com.dius
Version 2.0-RC5
Last update 11. July 2014
Tags: pact junit consumer
Organization au.com.dius
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 8
Dependencies scala-library, pact-jvm-consumer_2.10, junit, fluent-hc, scala-logging-slf4j_2.10, json, commons-lang3, automaton,
There are maybe transitive dependencies!
Group au.com.dius
Version 2.0-RC5
Last update 11. July 2014
Tags: pact junit consumer
Organization au.com.dius
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 8
Dependencies scala-library, pact-jvm-consumer_2.10, junit, fluent-hc, scala-logging-slf4j_2.10, json, commons-lang3, automaton,
There are maybe transitive dependencies!
pact-jvm-consumer-junit_2.10 from group au.com.dius (version 2.0-RC4)
pact-jvm-consumer-junit
Artifact pact-jvm-consumer-junit_2.10
Group au.com.dius
Version 2.0-RC4
Last update 06. June 2014
Tags: pact junit consumer
Organization au.com.dius
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies scala-library, pact-jvm-consumer_2.10, junit, fluent-hc, scala-logging-slf4j_2.10,
There are maybe transitive dependencies!
Group au.com.dius
Version 2.0-RC4
Last update 06. June 2014
Tags: pact junit consumer
Organization au.com.dius
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies scala-library, pact-jvm-consumer_2.10, junit, fluent-hc, scala-logging-slf4j_2.10,
There are maybe transitive dependencies!
pact-jvm-consumer-junit_2.10 from group au.com.dius (version 2.0-RC3)
pact-jvm-consumer-junit
Artifact pact-jvm-consumer-junit_2.10
Group au.com.dius
Version 2.0-RC3
Last update 12. May 2014
Tags: pact junit consumer
Organization au.com.dius
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 4
Dependencies scala-library, pact-jvm-consumer_2.10, junit, fluent-hc,
There are maybe transitive dependencies!
Group au.com.dius
Version 2.0-RC3
Last update 12. May 2014
Tags: pact junit consumer
Organization au.com.dius
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 4
Dependencies scala-library, pact-jvm-consumer_2.10, junit, fluent-hc,
There are maybe transitive dependencies!
Page 7 from 7 (items total 68)