public class AssertUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertFailed(javax.ws.rs.core.Response response)
Checks that Response status is status FAILED with status code 400
|
static void |
assertFailedResponse(javax.ws.rs.core.Response response)
Checks that Response status is NOT FOUND
|
static void |
assertGoneResponse(javax.ws.rs.core.Response response) |
static void |
assertInternalServerError(javax.ws.rs.core.Response response)
Checks that Response status is status FAILED with status code 500
|
static void |
assertStatusFailed(javax.ws.rs.core.Response response)
Checks that Response status is status FAILED with status code 200
|
static void |
assertSucceeded(javax.ws.rs.core.Response response)
Checks that Response status is SUCCEEDED
|
static void |
assertSucceededResponse(javax.ws.rs.core.Response response)
Checks that Response status is SUCCEEDED
|
static void |
assertSucceededResponse(javax.ws.rs.core.Response response,
int expected) |
static void |
validateFailedResponse(int errorCode,
String errorMessage,
boolean payLoad,
javax.ws.rs.core.Response response,
int httpResponseCode) |
public static void assertSucceeded(javax.ws.rs.core.Response response) throws LensException
response
- ResponseLensException
public static void assertSucceededResponse(javax.ws.rs.core.Response response) throws LensException
response
- ResponseLensException
public static void assertSucceededResponse(javax.ws.rs.core.Response response, int expected) throws LensException
LensException
public static void assertGoneResponse(javax.ws.rs.core.Response response) throws LensException
LensException
public static void assertFailedResponse(javax.ws.rs.core.Response response) throws LensException
response
- ResponseLensException
public static void assertFailed(javax.ws.rs.core.Response response) throws LensException
response
- ResponseLensException
public static void assertStatusFailed(javax.ws.rs.core.Response response) throws LensException
response
- ResponseLensException
public static void assertInternalServerError(javax.ws.rs.core.Response response) throws LensException
response
- ResponseLensException
public static void validateFailedResponse(int errorCode, String errorMessage, boolean payLoad, javax.ws.rs.core.Response response, int httpResponseCode) throws InstantiationException, IllegalAccessException, LensException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.