public class WebservicesAssert
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.String> |
SECURED_HEADERS
Standard headers that need to be present across hybris webservices.
|
| Constructor and Description |
|---|
WebservicesAssert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertBadRequest(Response response,
boolean expectEmptyBody)
Deprecated.
Since 6.1 use assertResponse instead
|
static void |
assertCreated(Response response,
boolean expectEmptyBody)
Deprecated.
Since 6.1 use assertResponse instead
|
static void |
assertForbidden(Response response,
boolean expectEmptyBody)
Deprecated.
Since 6.1 use assertResponse instead
|
static void |
assertForbiddenError(Response response) |
static void |
assertJSONEquals(java.lang.Object expected,
java.lang.Object actual) |
static void |
assertJSONEquals(java.lang.Object expected,
java.lang.Object actual,
boolean acceptAdditionalFields) |
static void |
assertJSONEquals(java.lang.Object expected,
java.lang.Object actual,
java.lang.String wildCard,
boolean acceptAdditionalFields) |
static void |
assertOk(Response response,
boolean expectEmptyBody)
Deprecated.
Since 6.1 use assertResponse instead
|
static void |
assertResponse(Status expectedStatus,
java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> expectedHeaders,
Response response)
Assert response status and verify that no body is there if expectEmptyBody is true.
|
static void |
assertResponse(Status expectedStatus,
Response response)
Assert response status and verify that no body is there if expectEmptyBody is true.
|
static void |
assertResponseStatus(Status expectedStatus,
Response response)
Deprecated.
Since 6.1 use assertResponse instead
|
static void |
assertResponseStatus(Status expectedStatus,
Response response,
boolean expectEmptyBody)
Deprecated.
Since 6.1 use assertResponse instead
|
static void |
assertUnauthorized(Response response,
boolean expectEmptyBody)
Deprecated.
Since 6.1 use assertResponse instead
|
public static final java.util.Map<java.lang.String,java.lang.String> SECURED_HEADERS
@Deprecated
public static void assertOk(Response response,
boolean expectEmptyBody)
@Deprecated
public static void assertCreated(Response response,
boolean expectEmptyBody)
@Deprecated
public static void assertForbidden(Response response,
boolean expectEmptyBody)
@Deprecated
public static void assertBadRequest(Response response,
boolean expectEmptyBody)
@Deprecated
public static void assertUnauthorized(Response response,
boolean expectEmptyBody)
@Deprecated
public static void assertResponseStatus(Status expectedStatus,
Response response,
boolean expectEmptyBody)
@Deprecated
public static void assertResponseStatus(Status expectedStatus,
Response response)
public static void assertResponse(Status expectedStatus,
java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> expectedHeaders,
Response response)
expectedStatus - expected statusresponse - response to testexpectedHeaders - headers that should be present in the response headerpublic static void assertResponse(Status expectedStatus,
Response response)
expectedStatus - expected statusresponse - response to testpublic static void assertForbiddenError(Response response)
public static void assertJSONEquals(java.lang.Object expected,
java.lang.Object actual)
public static void assertJSONEquals(java.lang.Object expected,
java.lang.Object actual,
boolean acceptAdditionalFields)
public static void assertJSONEquals(java.lang.Object expected,
java.lang.Object actual,
java.lang.String wildCard,
boolean acceptAdditionalFields)
Copyright © 2018 SAP SE. All Rights Reserved.