@IntegrationTest public class BaseOrderManagementWebservicesIntegrationTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_CURRENT_PAGE |
protected static java.lang.String |
DEFAULT_FIELDS |
protected static java.lang.String |
DEFAULT_PAGE_SIZE |
defaultLanguage, jaloSession| Constructor and Description |
|---|
BaseOrderManagementWebservicesIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertBadRequestWithContent(Response response,
java.lang.String errorReason,
java.lang.String errorSubject,
java.lang.String ErrorSubjectType)
Validates the first
ErrorWsDTO content of the ErrorListWsDTO of the bad request |
protected OrderSearchPageWsDto |
getAllOrderByDefault() |
protected <T> T |
getDefaultRestCall(java.lang.String path,
java.lang.String fields,
java.lang.String currentPage,
java.lang.String pageSize,
java.lang.Class<T> responseType)
Builds a GET rest call.
|
EnumerationService |
getEnumerationService() |
protected java.util.List<java.lang.String> |
getExtensionNames()
Gets a
List of all extensions loaded in the current setup. |
protected OrderWsDTO |
getOrderByCode(java.lang.String code) |
protected CancelReasonListWsDTO |
getOrderCancellationReasons() |
protected OrderEntrySearchPageWsDTO |
getOrderEntriesForOrderCode(java.lang.String code) |
protected OrderEntryWsDTO |
getOrderEntryForOrderCodeAndEntryNumber(java.lang.String code,
java.lang.String entryNumber) |
protected FraudReportListWsDTO |
getOrderFraudReports(java.lang.String code) |
protected <T> T |
getOrdersByStatuses(java.lang.String orderStatuses,
java.lang.Class<T> responseType) |
protected OrderStatusListWsDTO |
getOrderStatusByDefault() |
protected RefundReasonListWsDTO |
getRefundReasons() |
protected ReturnActionListWsDTO |
getReturnActions() |
protected CancelReasonListWsDTO |
getReturnCancellationReasons() |
protected ReturnEntrySearchPageWsDTO |
getReturnEntriesForReturnCode(java.lang.String returnCode) |
protected ReturnRequestWsDTO |
getReturnForReturnCode(java.lang.String returnCode) |
protected ReturnSearchPageWsDTO |
getReturns() |
protected <T> T |
getReturnsByStatus(java.lang.String statuses,
java.lang.Class<T> responseType) |
protected ReturnStatusListWsDTO |
getReturnStatuses() |
protected SetupImpexService |
getSetupImpexService() |
protected WsRequestBuilder |
getWsRequestBuilder()
Retrieves a new unauthenticated
WsRequestBuilder in order to build web requests. |
protected Response |
postApproveFraudulentOrder(java.lang.String code) |
protected Response |
postCancelOrder(OrderCancelRequestWsDTO orderCancelRequestWsDTO,
java.lang.String code) |
protected Response |
postCancelReturnRequestByDefault(CancelReturnRequestWsDTO cancelReturnRequestWsDTO) |
protected Response |
postCreateOrder(OrderRequestWsDTO orderRequestWsDTO) |
protected <T> Response |
postDefaultRestCall(java.lang.String path,
java.lang.String fields,
T requestBodyWsDTO)
Builds a POST rest call.
|
protected <T> T |
postDefaultRestCall(java.lang.String path,
java.lang.String fields,
T requestBodyWsDTO,
java.lang.Class<T> responseType)
Builds a POST rest call with the return type
|
protected Response |
postEmptyBodyRestCall(java.lang.String path)
this method is to build the rest call with null body for post with the return type Response
|
protected Response |
postRejectFraudulentOrder(java.lang.String code) |
protected Response |
postRequestManualPaymentReversalForReturnRequest(java.lang.String returnCode) |
protected Response |
postRequestManualTaxReversalForReturnRequest(java.lang.String returnCode) |
protected <S,T> T |
putDefaultRestCall(java.lang.String path,
java.lang.String fields,
S requestBodyWsDTO,
java.lang.Class<T> responseType)
Builds a PUT rest call
|
protected ReturnRequestWsDTO |
putUpdateReturnByReturnCode(java.lang.String code,
ReturnRequestModificationWsDTO returnRequestModificationWsDTO) |
void |
setEnumerationService(EnumerationService enumerationService) |
void |
setSetupImpexService(SetupImpexService setupImpexService) |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected static final java.lang.String DEFAULT_FIELDS
protected static final java.lang.String DEFAULT_CURRENT_PAGE
protected static final java.lang.String DEFAULT_PAGE_SIZE
public BaseOrderManagementWebservicesIntegrationTest()
protected OrderSearchPageWsDto getAllOrderByDefault()
protected OrderWsDTO getOrderByCode(java.lang.String code)
protected <T> T getOrdersByStatuses(java.lang.String orderStatuses,
java.lang.Class<T> responseType)
protected OrderEntrySearchPageWsDTO getOrderEntriesForOrderCode(java.lang.String code)
protected OrderEntryWsDTO getOrderEntryForOrderCodeAndEntryNumber(java.lang.String code, java.lang.String entryNumber)
protected OrderStatusListWsDTO getOrderStatusByDefault()
protected FraudReportListWsDTO getOrderFraudReports(java.lang.String code)
protected CancelReasonListWsDTO getOrderCancellationReasons()
protected CancelReasonListWsDTO getReturnCancellationReasons()
protected RefundReasonListWsDTO getRefundReasons()
protected ReturnActionListWsDTO getReturnActions()
protected ReturnStatusListWsDTO getReturnStatuses()
protected ReturnSearchPageWsDTO getReturns()
protected <T> T getReturnsByStatus(java.lang.String statuses,
java.lang.Class<T> responseType)
protected ReturnRequestWsDTO getReturnForReturnCode(java.lang.String returnCode)
protected ReturnEntrySearchPageWsDTO getReturnEntriesForReturnCode(java.lang.String returnCode)
protected Response postRequestManualPaymentReversalForReturnRequest(java.lang.String returnCode)
protected Response postRequestManualTaxReversalForReturnRequest(java.lang.String returnCode)
protected Response postCancelReturnRequestByDefault(CancelReturnRequestWsDTO cancelReturnRequestWsDTO)
protected Response postApproveFraudulentOrder(java.lang.String code)
protected Response postRejectFraudulentOrder(java.lang.String code)
protected Response postCancelOrder(OrderCancelRequestWsDTO orderCancelRequestWsDTO, java.lang.String code)
protected Response postCreateOrder(OrderRequestWsDTO orderRequestWsDTO)
protected ReturnRequestWsDTO putUpdateReturnByReturnCode(java.lang.String code, ReturnRequestModificationWsDTO returnRequestModificationWsDTO)
protected <T> T getDefaultRestCall(java.lang.String path,
java.lang.String fields,
java.lang.String currentPage,
java.lang.String pageSize,
java.lang.Class<T> responseType)
path - the url for the callfields - contains pagination informationcurrentPage - the current page of the requestpageSize - total page sizeprotected <T> T postDefaultRestCall(java.lang.String path,
java.lang.String fields,
T requestBodyWsDTO,
java.lang.Class<T> responseType)
T - type of the body objectpath - the url for the callfields - contains pagination informationrequestBodyWsDTO - the dto object sent with the requestresponseType - type of class to returnprotected <T> Response postDefaultRestCall(java.lang.String path,
java.lang.String fields,
T requestBodyWsDTO)
T - type of the body objectpath - the url for the callfields - contains pagination informationrequestBodyWsDTO - the dto object sent with the requestprotected Response postEmptyBodyRestCall(java.lang.String path)
path - Responseprotected <S,T> T putDefaultRestCall(java.lang.String path,
java.lang.String fields,
S requestBodyWsDTO,
java.lang.Class<T> responseType)
T - path - the url for the callfields - contains pagination informationrequestBodyWsDTO - the current dto which is to be updatedresponseType - type of class to returnprotected void assertBadRequestWithContent(Response response,
java.lang.String errorReason,
java.lang.String errorSubject,
java.lang.String ErrorSubjectType)
ErrorWsDTO content of the ErrorListWsDTO of the bad requestresponse - bad request responseerrorReason - error reasonerrorSubject - error subjectErrorSubjectType - error subject typeprotected WsRequestBuilder getWsRequestBuilder()
WsRequestBuilder in order to build web requests.WsRequestBuilderprotected java.util.List<java.lang.String> getExtensionNames()
List of all extensions loaded in the current setup.List of all loaded extensionsprotected SetupImpexService getSetupImpexService()
public void setSetupImpexService(SetupImpexService setupImpexService)
public EnumerationService getEnumerationService()
public void setEnumerationService(EnumerationService enumerationService)
Copyright © 2017 SAP SE. All Rights Reserved.