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
FieldsModifier and TypeFieldDescriptionprotected AllocationServiceprotected AtpFormulasprotected CancellationUtilprotected CommerceStockServiceprotected ConsignmentCancellationServiceprotected Longprotected InventoryEventServiceprotected OrderModelprotected Ordersprotected SourcingServiceprotected DefaultWarehouseStockServiceFields 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, workflowUtilFields inherited from class de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorIntegrationTest
flexibleSearchService, springCustomContextLoaderFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckGlobalAndLocalAtp(Long expectedLocal) voidcleanUp()protected LongBecause of the cancellation, the entire order is first allocated and sourced again for its original quantity minus the quantity cancelled.voidvoidvoidvoidvoidvoidvoidAvailability is not present in the formulavoidvoidvoidvoidvoidprotected LongWhen cancelled, even partially, an order is cancelled integrally and if there is some quantity left, it is source again.voidvoidsetUp()protected voidupdateFormula(AtpFormulaModel atpFormulaModel) Methods inherited from class de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorSourcingIntegrationTest
buildAsnWorkflow, buildConsignmentWorkflow, cleanUpData, cleanUpModel, refreshConsignmentAndEntries, resetFactors, saveAll, setupMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
orders
-
sourcingService
-
allocationService
-
consignmentCancellationService
-
inventoryEventService
-
warehouseStockService
-
commerceStockService
-
cancellationUtil
-
atpFormulas
-
order
-
initialOrderQty
-
-
Constructor Details
-
AtpFormulaIntegrationTest
public AtpFormulaIntegrationTest()
-
-
Method Details
-
setUp
-
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
-
updateFormula
-
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
When cancelled, even partially, an order is cancelled integrally and if there is some quantity left, it is source again.- Returns:
- the cancelled quantity
-