Class AtpFormulaIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorIntegrationTest
-
- de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorSourcingIntegrationTest
-
- de.hybris.platform.yacceleratorordermanagement.integration.AtpFormulaIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest @DirtiesContext(classMode=BEFORE_CLASS) public class AtpFormulaIntegrationTest extends BaseAcceleratorSourcingIntegrationTest
-
-
Field Summary
Fields Modifier and Type Field Description protected AllocationServiceallocationServiceprotected AtpFormulasatpFormulasprotected CancellationUtilcancellationUtilprotected WarehousingCommerceStockServicecommerceStockServiceprotected ConsignmentCancellationServiceconsignmentCancellationServiceprotected java.lang.LonginitialOrderQtyprotected InventoryEventServiceinventoryEventServiceprotected OrderModelorderprotected Ordersordersprotected SourcingServicesourcingServiceprotected DefaultWarehouseStockServicewarehouseStockService-
Fields inherited from class de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorSourcingIntegrationTest
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, workflowUtil
-
Fields inherited from class de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorIntegrationTest
flexibleSearchService, springCustomContextLoader
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description AtpFormulaIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckGlobalAndLocalAtp(java.lang.Long expectedLocal)voidcleanUp()protected java.lang.LonggetAllocatedQuantity()Because of the cancellation, the entire order is first allocated and sourced again for its original quantity minus the quantity cancelled.voidgetAtp_Available_Allocated()voidgetAtp_Available_Allocated_Cancelled()voidgetAtp_Available_Allocated_Cancelled_Shrinked()voidgetAtp_Available_Allocated_Cancelled_Shrinked_Wasted()voidgetAtp_Available_Allocated_Cancelled_Shrinked_Wasted_Increase()voidgetAtp_Available_Only()voidgetAtp_Empty_Formula()Availability is not present in the formulavoidgetAtp_Null_Formula()voidgetAtp_Shrinked_Wasted()voidgetAtp_WithExternal()voidgetAtp_WithReturned()voidgetAtp_WithReturnedBinCode_WithoutReturned()protected java.lang.LonggetCancelQuantity()When cancelled, even partially, an order is cancelled integrally and if there is some quantity left, it is source again.voidgetDefault_Atp()voidsetUp()protected voidupdateFormula(AtpFormulaModel atpFormulaModel)-
Methods inherited from class de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorSourcingIntegrationTest
buildAsnWorkflow, buildConsignmentWorkflow, cleanUpData, cleanUpModel, refreshConsignmentAndEntries, resetFactors, saveAll, setup
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
orders
protected Orders orders
-
sourcingService
protected SourcingService sourcingService
-
allocationService
protected AllocationService allocationService
-
consignmentCancellationService
protected ConsignmentCancellationService consignmentCancellationService
-
inventoryEventService
protected InventoryEventService inventoryEventService
-
warehouseStockService
protected DefaultWarehouseStockService warehouseStockService
-
commerceStockService
protected WarehousingCommerceStockService commerceStockService
-
cancellationUtil
protected CancellationUtil cancellationUtil
-
atpFormulas
protected AtpFormulas atpFormulas
-
order
protected OrderModel order
-
initialOrderQty
protected java.lang.Long initialOrderQty
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.InterruptedException, OrderCancelException- Throws:
java.lang.InterruptedExceptionOrderCancelException
-
cleanUp
public void cleanUp()
-
getDefault_Atp
public void getDefault_Atp()
-
getAtp_Null_Formula
public void getAtp_Null_Formula()
-
getAtp_Empty_Formula
public void getAtp_Empty_Formula()
Availability is not present in the formula
-
getAtp_Available_Only
public void getAtp_Available_Only()
-
getAtp_Available_Allocated
public void getAtp_Available_Allocated()
-
getAtp_Available_Allocated_Cancelled
public void getAtp_Available_Allocated_Cancelled()
-
getAtp_Available_Allocated_Cancelled_Shrinked
public void getAtp_Available_Allocated_Cancelled_Shrinked()
-
getAtp_Available_Allocated_Cancelled_Shrinked_Wasted
public void getAtp_Available_Allocated_Cancelled_Shrinked_Wasted()
-
getAtp_Available_Allocated_Cancelled_Shrinked_Wasted_Increase
public void getAtp_Available_Allocated_Cancelled_Shrinked_Wasted_Increase()
-
getAtp_Shrinked_Wasted
public void getAtp_Shrinked_Wasted()
-
getAtp_WithReturnedBinCode_WithoutReturned
public void getAtp_WithReturnedBinCode_WithoutReturned()
-
getAtp_WithReturned
public void getAtp_WithReturned()
-
getAtp_WithExternal
public void getAtp_WithExternal()
-
checkGlobalAndLocalAtp
protected void checkGlobalAndLocalAtp(java.lang.Long expectedLocal)
-
updateFormula
protected void updateFormula(AtpFormulaModel atpFormulaModel)
-
getAllocatedQuantity
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.- Returns:
- the allocated quantity
-
getCancelQuantity
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.- Returns:
- the cancelled quantity
-
-