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
- ResponseLensException
public static void assertSucceededResponse(javax.ws.rs.core.Response response) throws LensException
response
- ResponseLensException
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
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.