public class BaseValidationUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_CODE_ALREADY_EXISTS |
static int |
STATUS_CODE_CREATED |
static int |
STATUS_CODE_DELETE |
static int |
STATUS_CODE_INVALID_CONTENT |
static int |
STATUS_CODE_MISSING_DATA |
static int |
STATUS_CODE_MISSING_INFORMATION |
static int |
STATUS_CODE_NOT_FOUND |
static int |
STATUS_CODE_RESTRICTED_ACCESS |
static int |
STATUS_CODE_RESTRICTED_OPERATION |
static int |
STATUS_CODE_SUCCESS |
static int |
STATUS_CODE_SUCCESS_DELETE |
static int |
STATUS_CODE_SUCCESS_NO_CONTENT |
Constructor and Description |
---|
BaseValidationUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
checkCreateResponse(RestResponse response) |
static void |
checkDeleteResponse(RestResponse response) |
protected static Boolean |
checkErrorCode(RestResponse deleteResponse) |
static void |
checkErrorMessageResponse(RestResponse errorResponse,
ActionStatus actionStatus) |
static void |
checkErrorResponse(RestResponse errorResponse,
ActionStatus actionStatus,
String... expectedVariables) |
static void |
checkStatusCode(RestResponse response,
String assertMessage,
boolean AND,
int... statuses) |
static void |
checkSuccess(RestResponse response) |
public static final int STATUS_CODE_SUCCESS
public static final int STATUS_CODE_CREATED
public static final int STATUS_CODE_DELETE
public static final int STATUS_CODE_NOT_FOUND
public static final int STATUS_CODE_SUCCESS_NO_CONTENT
public static final int STATUS_CODE_SUCCESS_DELETE
public static final int STATUS_CODE_INVALID_CONTENT
public static final int STATUS_CODE_MISSING_DATA
public static final int STATUS_CODE_MISSING_INFORMATION
public static final int STATUS_CODE_RESTRICTED_ACCESS
public static final int STATUS_CODE_RESTRICTED_OPERATION
public static final int STATUS_CODE_ALREADY_EXISTS
protected static Boolean checkErrorCode(RestResponse deleteResponse)
public static void checkStatusCode(RestResponse response, String assertMessage, boolean AND, int... statuses)
public static void checkDeleteResponse(RestResponse response)
public static void checkCreateResponse(RestResponse response)
public static void checkSuccess(RestResponse response)
public static void checkErrorResponse(RestResponse errorResponse, ActionStatus actionStatus, String... expectedVariables) throws FileNotFoundException
FileNotFoundException
public static void checkErrorMessageResponse(RestResponse errorResponse, ActionStatus actionStatus) throws FileNotFoundException
FileNotFoundException
Copyright © 2017. All rights reserved.