Class HttpResponseMatcher

java.lang.Object
org.mockserver.matchers.HttpResponseMatcher

public class HttpResponseMatcher extends Object
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 Details

  • Method Details

    • matches

      public boolean matches(HttpResponse actual)
      Returns true when the actual response matches the template. A null template matches everything.