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 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
-
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 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()
void
getAtp_Available_Allocated_Cancelled()
void
getAtp_Available_Allocated_Cancelled_Shrinked()
void
getAtp_Available_Allocated_Cancelled_Shrinked_Wasted()
void
getAtp_Available_Allocated_Cancelled_Shrinked_Wasted_Increase()
void
getAtp_Available_Only()
void
getAtp_Empty_Formula()
Availability is not present in the formulavoid
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)
-
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.InterruptedException
OrderCancelException
-
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
-
-