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
|
public static void assertSucceeded(javax.ws.rs.core.Response response)
throws LensException
response - ResponseLensExceptionpublic static void assertSucceededResponse(javax.ws.rs.core.Response response)
throws LensException
response - ResponseLensExceptionpublic static void assertGoneResponse(javax.ws.rs.core.Response response)
throws LensException
LensExceptionpublic static void assertFailedResponse(javax.ws.rs.core.Response response)
throws LensException
response - ResponseLensExceptionpublic static void assertFailed(javax.ws.rs.core.Response response)
throws LensException
response - ResponseLensExceptionpublic static void assertStatusFailed(javax.ws.rs.core.Response response)
throws LensException
response - ResponseLensExceptionpublic static void assertInternalServerError(javax.ws.rs.core.Response response)
throws LensException
response - ResponseLensExceptionCopyright © 2014–2015 Apache Software Foundation. All rights reserved.