mock_http library
A library for easily and declaratively creating a mock HTTP client.
Using the MockHttp class, you can mock an HTTP client and make assertions about the requests and responses that are made.
Classes
- MockHttp
- A class for building a mock HTTP client and making assertions about requests that were made.
- ResponseSpec
Functions
-
matchTimes(
Matcher matcher, int times) → Matcher -
once(
Matcher matcher) → Matcher