public class UnexpectedResponseException extends RuntimeException
| Modifier and Type | Class and Description |
|---|---|
static class |
UnexpectedResponseException.Matcher |
| Constructor and Description |
|---|
UnexpectedResponseException(com.jayway.restassured.response.Response response) |
UnexpectedResponseException(com.jayway.restassured.response.Response response,
int expectedStatus) |
UnexpectedResponseException(com.jayway.restassured.response.Response response,
int actualStatusCode,
int expectedStatusCode) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActualStatusCode() |
int |
getExpectedStatusCode() |
com.jayway.restassured.response.Response |
getResponse() |
static void |
verifyResponse(com.jayway.restassured.response.Response response,
int expectedStatus) |
static void |
verifyStatusCode(int actualStatusCode,
int expectedStatusCode) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnexpectedResponseException(com.jayway.restassured.response.Response response)
public UnexpectedResponseException(com.jayway.restassured.response.Response response,
int expectedStatus)
public UnexpectedResponseException(com.jayway.restassured.response.Response response,
int actualStatusCode,
int expectedStatusCode)
public com.jayway.restassured.response.Response getResponse()
public int getActualStatusCode()
public int getExpectedStatusCode()
public static void verifyStatusCode(int actualStatusCode,
int expectedStatusCode)
throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static void verifyResponse(com.jayway.restassured.response.Response response,
int expectedStatus)
throws UnexpectedResponseException,
NullPointerException
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.