public class ResponseVerifier extends Object
| Constructor and Description |
|---|
ResponseVerifier(Environment env,
Response response) |
| Modifier and Type | Method and Description |
|---|---|
ResponseVerifier |
body(ObjectValue objectWant) |
ResponseVerifier |
body(StringValue want) |
protected int |
getDefaultStatus() |
protected Environment |
getEnvironment() |
Response |
getResponse() |
ResponseVerifier |
header(String name,
StringValue want) |
ResponseVerifier |
headers(ObjectValue objectWant) |
ResponseVerifier |
locationHeader(String uriWant) |
ResponseVerifier |
locationHeader(StringValue stringWant) |
ResponseVerifier |
status(int... statuses) |
ResponseVerifier |
xLocationHeader(String uriWant) |
ResponseVerifier |
xLocationHeader(StringValue stringWant) |
public ResponseVerifier(Environment env, Response response)
protected Environment getEnvironment()
public Response getResponse()
public ResponseVerifier status(int... statuses)
protected int getDefaultStatus()
public ResponseVerifier locationHeader(String uriWant) throws Exception
Exceptionpublic ResponseVerifier locationHeader(StringValue stringWant) throws Exception
Exceptionpublic ResponseVerifier xLocationHeader(String uriWant) throws Exception
Exceptionpublic ResponseVerifier xLocationHeader(StringValue stringWant) throws Exception
Exceptionpublic ResponseVerifier header(String name, StringValue want) throws Exception
Exceptionpublic ResponseVerifier headers(ObjectValue objectWant) throws Exception
Exceptionpublic ResponseVerifier body(ObjectValue objectWant) throws Exception
Exceptionpublic ResponseVerifier body(StringValue want) throws Exception
ExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.