https://github.com/pactflow/injected-provider-states-example
Example of a Stringboot consumer/provider tested with a pact where the provider state data is injected
https://github.com/pactflow/injected-provider-states-example
example
Last synced: 10 months ago
JSON representation
Example of a Stringboot consumer/provider tested with a pact where the provider state data is injected
- Host: GitHub
- URL: https://github.com/pactflow/injected-provider-states-example
- Owner: pactflow
- License: mit
- Created: 2019-07-12T03:05:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-10T11:05:40.000Z (10 months ago)
- Last Synced: 2025-04-15T06:48:02.833Z (10 months ago)
- Topics: example
- Language: Kotlin
- Size: 216 KB
- Stars: 4
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Injected provider states example
This is an example of a consumer and provider pact test where the provider states values can be injected into the test.
It has two sub-projects: the consumer and provider. Both are Springboot applications.
## Consumer
For our example, our consumer is a springboot app that is going to create some kind of transaction for an account.
We'll create a `/new-transaction` endpoint to kick this flow off. It will then have to call out to the provider to
get the account data.
## Provider
The provider is a springboot app that has an `account` resource. The consumer app will call this to create a new account
as part of creating a new transaction.