Class HttpResponseStatusCodeMatcher

java.lang.Object
org.hamcrest.BaseMatcher<org.apache.http.HttpResponse>
org.keycloak.tests.utils.matchers.HttpResponseStatusCodeMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<org.apache.http.HttpResponse>, org.hamcrest.SelfDescribing

public class HttpResponseStatusCodeMatcher extends org.hamcrest.BaseMatcher<org.apache.http.HttpResponse>
Matcher for matching status code of Response instance.
Author:
hmlnarik
  • Constructor Details

    • HttpResponseStatusCodeMatcher

      public HttpResponseStatusCodeMatcher(org.hamcrest.Matcher<? extends Number> matcher)
  • Method Details

    • matches

      public boolean matches(Object item)
    • describeMismatch

      public void describeMismatch(Object item, org.hamcrest.Description description)
      Specified by:
      describeMismatch in interface org.hamcrest.Matcher<org.apache.http.HttpResponse>
      Overrides:
      describeMismatch in class org.hamcrest.BaseMatcher<org.apache.http.HttpResponse>
    • describeTo

      public void describeTo(org.hamcrest.Description description)