Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State change function #143

Merged
merged 11 commits into from
Jan 2, 2022
Merged

State change function #143

merged 11 commits into from
Jan 2, 2022

Conversation

jbwheatley
Copy link
Owner

adds ability to alter the state of the mock provider using a provided function ProviderState => Unit.

This is achieved by spinning up a http server that pact-jvm sends the state change requests to prior to each interaction, which subsequently applies the function that has been provided. Addresses #121

@jbwheatley
Copy link
Owner Author

jbwheatley commented Dec 23, 2021

will have to replace the server impl because cask doesn't have 2.12 support :(

@jbwheatley jbwheatley merged commit 3d76b0b into main Jan 2, 2022
@jbwheatley jbwheatley deleted the state-change-function branch January 3, 2022 02:44
@gaeljw
Copy link
Collaborator

gaeljw commented Jan 3, 2022

Nice, I'll be happy to test it when it's released 👍

@jbwheatley
Copy link
Owner Author

Nice, I'll be happy to test it when it's released 👍

Getting there slowly, will pick things up properly once I'm back from vacation on the 5th 😁

jbwheatley added a commit that referenced this pull request Jan 4, 2022
* configurable state change function
jbwheatley added a commit that referenced this pull request Jan 4, 2022
* configurable state change function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants