Package org.glassfish.admin.rest.testing
Class ResponseVerifier
- java.lang.Object
-
- org.glassfish.admin.rest.testing.ResponseVerifier
-
public class ResponseVerifier extends Object
-
-
Constructor Summary
Constructors Constructor Description ResponseVerifier(Environment env, Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
ResponseVerifier
public ResponseVerifier(Environment env, Response response)
-
-
Method Detail
-
getEnvironment
protected Environment getEnvironment()
-
getResponse
public Response getResponse()
-
status
public ResponseVerifier status(int... statuses)
-
getDefaultStatus
protected int getDefaultStatus()
-
locationHeader
public ResponseVerifier locationHeader(String uriWant) throws Exception
- Throws:
Exception
-
locationHeader
public ResponseVerifier locationHeader(StringValue stringWant) throws Exception
- Throws:
Exception
-
xLocationHeader
public ResponseVerifier xLocationHeader(String uriWant) throws Exception
- Throws:
Exception
-
xLocationHeader
public ResponseVerifier xLocationHeader(StringValue stringWant) throws Exception
- Throws:
Exception
-
header
public ResponseVerifier header(String name, StringValue want) throws Exception
- Throws:
Exception
-
headers
public ResponseVerifier headers(ObjectValue objectWant) throws Exception
- Throws:
Exception
-
body
public ResponseVerifier body(ObjectValue objectWant) throws Exception
- Throws:
Exception
-
body
public ResponseVerifier body(StringValue want) throws Exception
- Throws:
Exception
-
-