Package org.mockserver.matchers
Class HttpResponseMatcher
java.lang.Object
org.mockserver.matchers.HttpResponseMatcher
Matches an actual
HttpResponse against a template HttpResponse.
Each template field constrains the match only when it is set (non-null/non-blank). A null or empty template matches any response.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseMatcher(Configuration configuration, MockServerLogger mockServerLogger, HttpResponse template) -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(HttpResponse actual) Returnstruewhen the actual response matches the template.
-
Constructor Details
-
HttpResponseMatcher
public HttpResponseMatcher(Configuration configuration, MockServerLogger mockServerLogger, HttpResponse template)
-
-
Method Details
-
matches
Returnstruewhen the actual response matches the template. A null template matches everything.
-