Interface RequestMatcher
- All Known Subinterfaces:
RequestExpectation
- All Known Implementing Classes:
DefaultRequestExpectation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A contract for matching requests to expectations.
See MockRestRequestMatchers
for static factory methods.
- Since:
- 3.2
- Author:
- Craig Walls
-
Method Summary
Modifier and TypeMethodDescriptionvoid
match
(ClientHttpRequest request) Match the given request against specific expectations.
-
Method Details
-
match
Match the given request against specific expectations.- Parameters:
request
- the request to make assertions on- Throws:
IOException
- in case of I/O errorsAssertionError
- if expectations are not met
-