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 |
describeMismatchSafely(javax.ws.rs.core.Response item,
org.hamcrest.Description 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() |
static HasHttpStatus |
hasUnauthorizedStatus() |
protected boolean |
matchesSafely(javax.ws.rs.core.Response item) |
public HasHttpStatus(javax.ws.rs.core.Response.StatusType status)
public HasHttpStatus(int statusCode)
public void describeMismatchSafely(javax.ws.rs.core.Response item,
org.hamcrest.Description description)
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 hasUnauthorizedStatus()
Copyright © 2023. All rights reserved.