JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
After upgrading from 3.x to 4.1.x I've noticed consumer side no longer publishes providerStates on some Pacts we have.
It took quite a while to narrow the thing down. In Short:
new PactBuilder().with {
given 'foo'
uponReceiving 'bar'
// ...
}
...works as expected whilst:
new PactBuilder().with {
uponReceiving 'bar'
given 'foo'
// ...
}
...does not publish the state.
Is it by design?
Although it makes more sense to declare a state first and then an action, order of DSL method invocations shouldn't really matter, should it?
After upgrading from 3.x to 4.1.x I've noticed consumer side no longer publishes
providerStates
on some Pacts we have. It took quite a while to narrow the thing down. In Short:...works as expected whilst:
...does not publish the state.
Is it by design?
Although it makes more sense to declare a state first and then an action, order of DSL method invocations shouldn't really matter, should it?
Thanks!