Interface ResponseMatcher
public interface ResponseMatcher
Defines the contract for matching response messages to expectations. Implementations of this interface are returned
by
ResponseMatchers
.- Since:
- 2.0
- Author:
- Arjen Poutsma
-
Method Summary
Modifier and TypeMethodDescriptionvoid
match
(WebServiceMessage request, WebServiceMessage response) Matches the given response message against the expectations.
-
Method Details
-
match
void match(WebServiceMessage request, WebServiceMessage response) throws IOException, AssertionError Matches the given response message against the expectations. Implementations typically make use of JUnit-based assertions.- Parameters:
request
- the request messageresponse
- the response message to make assertions on- Throws:
IOException
- in case of I/O errorsAssertionError
- if expectations are not met
-