@IntegrationTest public class AtpFormulaIntegrationTest extends BaseAcceleratorSourcingIntegrationTest
| Modifier and Type | Field and Description |
|---|---|
protected AllocationService |
allocationService |
protected AtpFormulas |
atpFormulas |
protected CancellationUtil |
cancellationUtil |
protected WarehousingCommerceStockService |
commerceStockService |
protected ConsignmentCancellationService |
consignmentCancellationService |
protected java.lang.Long |
initialOrderQty |
protected InventoryEventService |
inventoryEventService |
protected OrderModel |
order |
protected Orders |
orders |
protected SourcingService |
sourcingService |
protected DefaultWarehouseStockService |
warehouseStockService |
automatedWorkflowActionTemplates, baseStores, CAMERA_CODE, CAMERA_QTY, CODE_BOSTON, CODE_MEMORY_CARD, CODE_MONTREAL, CODE_MONTREAL_EXTERNAL, CODE_PARIS, CODE_TORONTO, commentTypes, components, CONSIGNMENT_ACTION_EVENT_NAME, csAgentGroups, DECLINE_ENTRIES, declineUtil, deliveryMode, domains, emailAddresses, LEFTOVER_QTY, LENS_CODE, LENS_QTY, MEMORY_CARD_CODE, MEMORY_CARD_QTY, modelService, ORDER_ACTION_EVENT_NAME, orderBusinessProcessService, pointsOfService, products, productService, RE_SOURCE_CHOICE, REALLOCATE_CONSIGNMENT_CHOICE, restockConfigs, returnUtil, sourcingBanService, sourcingConfigs, sourcingUtil, stockLevels, stockService, timeOut, users, warehouses, workflowActionTemplates, workflowService, workflowTemplates, workflowUtilflexibleSearchService, springCustomContextLoaderimportServicejaloSession| Constructor and Description |
|---|
AtpFormulaIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkGlobalAndLocalAtp(java.lang.Long expectedLocal) |
void |
cleanUp() |
protected java.lang.Long |
getAllocatedQuantity()
Because of the cancellation, the entire order is first allocated and sourced again for its original quantity minus the quantity cancelled.
|
void |
getAtp_Available_Allocated_Cancelled_Shrinked_Wasted_Increase() |
void |
getAtp_Available_Allocated_Cancelled_Shrinked_Wasted() |
void |
getAtp_Available_Allocated_Cancelled_Shrinked() |
void |
getAtp_Available_Allocated_Cancelled() |
void |
getAtp_Available_Allocated() |
void |
getAtp_Available_Only() |
void |
getAtp_Empty_Formula()
Availability is not present in the formula
|
void |
getAtp_Null_Formula() |
void |
getAtp_Shrinked_Wasted() |
void |
getAtp_WithExternal() |
void |
getAtp_WithReturned() |
void |
getAtp_WithReturnedBinCode_WithoutReturned() |
protected java.lang.Long |
getCancelQuantity()
When cancelled, even partially, an order is cancelled integrally and if there is some quantity left, it is source again.
|
void |
getDefault_Atp() |
void |
setUp() |
protected void |
updateFormula(AtpFormulaModel atpFormulaModel) |
buildAsnWorkflow, buildConsignmentWorkflow, cleanUpData, cleanUpModel, refreshConsignmentAndEntries, resetFactors, saveAll, setupcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected Orders orders
protected SourcingService sourcingService
protected AllocationService allocationService
protected ConsignmentCancellationService consignmentCancellationService
protected InventoryEventService inventoryEventService
protected DefaultWarehouseStockService warehouseStockService
protected WarehousingCommerceStockService commerceStockService
protected CancellationUtil cancellationUtil
protected AtpFormulas atpFormulas
protected OrderModel order
protected java.lang.Long initialOrderQty
public void setUp()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void cleanUp()
public void getDefault_Atp()
public void getAtp_Null_Formula()
public void getAtp_Empty_Formula()
public void getAtp_Available_Only()
public void getAtp_Available_Allocated()
public void getAtp_Available_Allocated_Cancelled()
public void getAtp_Available_Allocated_Cancelled_Shrinked()
public void getAtp_Available_Allocated_Cancelled_Shrinked_Wasted()
public void getAtp_Available_Allocated_Cancelled_Shrinked_Wasted_Increase()
public void getAtp_Shrinked_Wasted()
public void getAtp_WithReturnedBinCode_WithoutReturned()
public void getAtp_WithReturned()
public void getAtp_WithExternal()
protected void checkGlobalAndLocalAtp(java.lang.Long expectedLocal)
protected void updateFormula(AtpFormulaModel atpFormulaModel)
protected java.lang.Long getAllocatedQuantity()
protected java.lang.Long getCancelQuantity()
Copyright © 2018 SAP SE. All Rights Reserved.