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

Update WireMock to version 3.6.0 to allow use of the start() method #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

leeturner
Copy link
Contributor

WireMock 3.6.0 provided the start() and stop() extension lifecycle methods which can be used to initialise extensions when WireMock starts and allow them to perform and cleanup when WireMock shuts down.

This plugin used a hack to initialise the jwt so this change removes the hack in favour of the new start() method

WireMock 3.6.0 provided the start() and stop() extension lifecycle
methods which can be used to initialise extensions when WireMock starts
and allow them to perform and cleanup when WireMock shuts down.

This plugin used a hack to initialise the jwt so this change removes the
hack in favour of the new start() method

private void initialise() {
if (!initialised) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking we probably don't need all of this now, given start only happens once during wiremock initialisation

leeturner added 2 commits May 27, 2024 10:08
As the new start() method is only called once during wiremock
initialisation we no longer need the initialised flag or the
synchronised block.
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.

1 participant