mock-server / mockserver

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).
http://mock-server.com
Apache License 2.0
4.57k stars 1.07k forks source link

MockServerMatcher.dumpToLog(HttpRequest) decreases Expectation.times #78

Closed logogin closed 9 years ago

logogin commented 9 years ago

When calling org.mockserver.client.server.MockServerClient.dumpToLog(HttpRequest) it causes to modify server persisted expectation. MockServerMatcher.java#L96 The problem could be due to if (expectation.matches(httpRequest)) line 100 which decreases the counter.

jamesdbloom commented 9 years ago

This should now be fixed, I'll make a release in the next couple of days which will include this fix