Interface RequestMatcher
- All Known Subinterfaces:
RequestExpectation
- All Known Implementing Classes:
DefaultRequestExpectation
public interface RequestMatcher
A contract for matching requests to expectations.See
MockRestRequestMatchers
for static factory methods.- Since:
- 3.2
- Author:
- Craig Walls
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
match(ClientHttpRequest request)
Match the given request against specific expectations.
Method Detail
match
void match(ClientHttpRequest request) throws IOException, AssertionError
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