HttpClientMock
HttpClientMock copied to clipboard
Library for mocking Apache HttpClient.
Currently HttpClientMock supports only mocking of HttpClient. In scope of this issue we want to add support for mocking HttpAsyncClient. Working HttpAsyncClientMock should look similar to HttpClientMock. Example: Record: ```...
I am seeing an NPE with the following test with version 1.10.0. This issue is _not_ reproducible with version 2.2.1. However, I am currently stuck on 1.10.0 for my application....
Currently i have to rewrite the mock rule to verify the number of calls. I.e.: ``` mock.onPost().withPath(Matchers.containsString("/something")).doReturn(HttpStatus.SC_OK, "777"); [...] mock.verify().post().withPath(Matchers.containsString("/something")).called(1); ``` Especially when using complex rules this is time consuming...
Feature request: Include JSON patch matching for request body in the withBody() matcher. Like https://github.com/spotify/java-hamcrest#json-matchers
There is a typo in HttpClientMock where the OPTIONS method name is misspelled. See: https://github.com/mangstadt/HttpClientMock/commit/5753583e652a078d421bbf5e7e112add43af41fc
We migrated to HttpClient 5 and HttpClientMock 2.1.1 and found an issue we already had for HttpClient 4 with HttpClientMock 1.9.0, see issue #39 -> For HttpClientMock 1.10.0 there was...