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

New Feature: not() in verify #1892 #2006

Merged
merged 8 commits into from
Mar 13, 2023
Merged

Conversation

SatyamAK
Copy link
Contributor

Implemented a not method in WireMock.java which takes StringPatternValue parameter and returns the opposite of the result.
For example, verify(getRequestedFor(urlEqualTo("/header/not")).withHeader("X-Thing", not(containing("Four"))));

The functionality has been properly tested, unit and acceptance tests are passing.

New File Added: NotPattern
File modified: StringValuePatternJsonDeserializer

Copy link
Contributor Author

@SatyamAK SatyamAK left a comment

Choose a reason for hiding this comment

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

Hi @tomakehurst we have made the changes according to your suggestions.

@tomakehurst tomakehurst merged commit dd9a6f4 into wiremock:master Mar 13, 2023
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.

None yet

3 participants