Class HttpResponseMatchers


  • public final class HttpResponseMatchers
    extends Object
    • Constructor Detail

      • HttpResponseMatchers

        public HttpResponseMatchers()
    • Method Detail

      • hasStatus

        public static org.hamcrest.Matcher<? super org.apache.hc.core5.http.HttpResponse> hasStatus​(int expectedStatus)
      • hasNoEntity

        public static org.hamcrest.Matcher<? super org.apache.hc.core5.http.HttpResponse> hasNoEntity()
      • hasReason

        public static org.hamcrest.Matcher<? super org.apache.hc.core5.http.HttpResponse> hasReason​(String expectedReason)
      • hasContent

        public static org.hamcrest.Matcher<? super org.apache.hc.core5.http.HttpEntityContainer> hasContent​(String content)
      • hasContent

        public static org.hamcrest.Matcher<? super org.apache.hc.core5.http.HttpEntityContainer> hasContent​(String content,
                                                                                                            String charset)
      • hasCookie

        public static org.hamcrest.Matcher<? super org.apache.hc.client5.http.protocol.HttpClientContext> hasCookie​(String expectedCookieName,
                                                                                                                    String expectedCookieValue)