public final class DefaultRequestMatcher extends Object implements RequestMatcher
RequestMatcher. This implementation expects exact match in terms of the HTTP method, the
path & query string, and any body of the request.| Constructor and Description |
|---|
DefaultRequestMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMatch(RealRequest realRequest,
ClientDriverRequest expectedRequest)
Checks for a match between a real
RealRequest and an expected ClientDriverRequest. |
public boolean isMatch(RealRequest realRequest, ClientDriverRequest expectedRequest)
RequestMatcherRealRequest and an expected ClientDriverRequest. This
implementation is as strict as it can be with exact matching for Strings, but can also use regular expressions in
the form of Patterns.isMatch in interface RequestMatcherrealRequest - The real request RealRequestexpectedRequest - The expected ClientDriverRequestCopyright © 2013. All Rights Reserved.