Skip to content

Conversation

@BobrImperator
Copy link
Contributor

@BobrImperator BobrImperator commented Jul 25, 2025

Currently a mock defined as Mock::given(method("Get")) would fail a test due to the MethodExactMatcher being case sensitive.

  • Changes MethodExactMatcher to allow a mocked method to be case in-sensitive.
    Wiremock will automatically convert a provided method to uppercase.
    This makes it so both Mock::given(method("GET")) and Mock::given(method("Get")) will pass a test.
  • Adds a test making sure that Mock::given(method(Method::Get)) is still compatible.

@BobrImperator BobrImperator force-pushed the make-method-case-insensitive branch from 7bd53a0 to d3751f0 Compare July 29, 2025 11:54
@LukeMathWalker LukeMathWalker merged commit ebaa70b into LukeMathWalker:main Aug 24, 2025
4 of 5 checks passed
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