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 |
|---|---|
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() |
protected boolean |
matchesSafely(javax.ws.rs.core.Response item) |
describeMismatch, describeMismatchSafely, matchespublic HasHttpStatus(javax.ws.rs.core.Response.StatusType status)
public HasHttpStatus(int statusCode)
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()
Copyright © 2021. All rights reserved.