Skip to content

Conversation

@JasonBenett
Copy link
Owner

When queryParameters are specified in request matchers, WireMock requires 'urlPath' instead of 'url' to match the path separately from query params.

This fix:

  • Adds determineUrlKey() method to automatically select correct URL matcher
  • Eliminates code duplication across haveHttpStubFor, seeHttpRequest, dontSeeHttpRequest
  • Respects explicit user overrides for urlPath/urlPattern
  • Adds comprehensive unit tests with data provider using generators
  • Updates documentation to replace docker-compose with docker run commands

🤖 Generated with Claude Code

When queryParameters are specified in request matchers, WireMock requires
'urlPath' instead of 'url' to match the path separately from query params.

This fix:
- Adds determineUrlKey() method to automatically select correct URL matcher
- Eliminates code duplication across haveHttpStubFor, seeHttpRequest, dontSeeHttpRequest
- Respects explicit user overrides for urlPath/urlPattern
- Adds comprehensive unit tests with data provider using generators
- Updates documentation to replace docker-compose with docker run commands

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@JasonBenett JasonBenett merged commit e1588d4 into main Nov 30, 2025
4 checks passed
@JasonBenett JasonBenett deleted the fix-query-params branch November 30, 2025 17:18
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.

3 participants