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 ResponseVerifierbody(ObjectValue objectWant)ResponseVerifierbody(StringValue want)protected intgetDefaultStatus()protected EnvironmentgetEnvironment()ResponsegetResponse()ResponseVerifierheader(String name, StringValue want)ResponseVerifierheaders(ObjectValue objectWant)ResponseVerifierlocationHeader(String uriWant)ResponseVerifierlocationHeader(StringValue stringWant)ResponseVerifierstatus(int... statuses)ResponseVerifierxLocationHeader(String uriWant)ResponseVerifierxLocationHeader(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
-
-