public class HttpResponseStatusCodeMatcher
extends org.hamcrest.TypeSafeMatcher<org.apache.http.HttpResponse>
Constructor and Description |
---|
HttpResponseStatusCodeMatcher(int statusCode) |
Modifier and Type | Method and Description |
---|---|
protected void |
describeMismatchSafely(org.apache.http.HttpResponse response,
org.hamcrest.Description mismatchDescription) |
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<org.apache.http.HttpResponse> |
hasStatusCode(int statusCode) |
boolean |
matchesSafely(org.apache.http.HttpResponse response) |
public HttpResponseStatusCodeMatcher(int statusCode)
public boolean matchesSafely(org.apache.http.HttpResponse response)
matchesSafely
in class org.hamcrest.TypeSafeMatcher<org.apache.http.HttpResponse>
public void describeTo(org.hamcrest.Description description)
protected void describeMismatchSafely(org.apache.http.HttpResponse response, org.hamcrest.Description mismatchDescription)
describeMismatchSafely
in class org.hamcrest.TypeSafeMatcher<org.apache.http.HttpResponse>
public static org.hamcrest.Matcher<org.apache.http.HttpResponse> hasStatusCode(int statusCode)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.