public class HasHttpStatus
extends org.hamcrest.TypeSafeMatcher<javax.ws.rs.core.Response>
| Constructor and Description |
|---|
HasHttpStatus(int statusCode) |
HasHttpStatus(javax.ws.rs.core.Response.StatusType status) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(javax.ws.rs.core.Response item,
org.hamcrest.Description mismatchDescription) |
void |
describeTo(org.hamcrest.Description description) |
static HasHttpStatus |
hasBadRequestStatus() |
static HasHttpStatus |
hasCreatedStatus() |
static HasHttpStatus |
hasHttpStatus(int statusCode) |
static HasHttpStatus |
hasHttpStatus(javax.ws.rs.core.Response.StatusType status) |
static HasHttpStatus |
hasMethodNotAllowedStatus() |
static HasHttpStatus |
hasOkStatus() |
static HasHttpStatus |
hasUnauthorizedRequestStatus() |
protected boolean |
matchesSafely(javax.ws.rs.core.Response item) |
public HasHttpStatus(javax.ws.rs.core.Response.StatusType status)
public HasHttpStatus(int statusCode)
protected void describeMismatchSafely(javax.ws.rs.core.Response item,
org.hamcrest.Description mismatchDescription)
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<javax.ws.rs.core.Response>public void describeTo(org.hamcrest.Description description)
protected boolean matchesSafely(javax.ws.rs.core.Response item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<javax.ws.rs.core.Response>public static HasHttpStatus hasHttpStatus(int statusCode)
public static HasHttpStatus hasHttpStatus(javax.ws.rs.core.Response.StatusType status)
public static HasHttpStatus hasOkStatus()
public static HasHttpStatus hasCreatedStatus()
public static HasHttpStatus hasMethodNotAllowedStatus()
public static HasHttpStatus hasBadRequestStatus()
public static HasHttpStatus hasUnauthorizedRequestStatus()
Copyright © 2017. All rights reserved.