Class StockLevelsControllersIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.warehousingwebservices.warehousingwebservices.util.BaseWebservicesIntegrationTest
de.hybris.platform.warehousingwebservices.warehousingwebservices.util.BaseWarehousingWebservicesIntegrationTest
de.hybris.platform.warehousingwebservices.warehousingwebservices.StockLevelsControllersIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class StockLevelsControllersIntegrationTest
extends BaseWarehousingWebservicesIntegrationTest
-
Field Summary
Fields inherited from class de.hybris.platform.warehousingwebservices.warehousingwebservices.util.BaseWarehousingWebservicesIntegrationTest
addresses, allocationService, ASNS, baseSites, baseStores, businessProcessService, commentTypes, components, DEFAULT_CLIENT_ID, DEFAULT_CLIENT_SECRET, DEFAULT_CURRENT_PAGE, DEFAULT_FIELDS, DEFAULT_PAGE_SIZE, deliveryModes, eventService, flexibleSearchService, modelService, orders, pointsOfService, products, returnCallbackService, sourcingService, stockLevels, STOCKLEVELS, users, WAREHOUSE_AGENT_PASSWORD, WAREHOUSE_AGENT_USERNAME, warehouses, warehousingReturnServiceFields inherited from class de.hybris.platform.warehousingwebservices.warehousingwebservices.util.BaseWebservicesIntegrationTest
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 StockLevelAdjustmentsWsDTOcreateStockLevelAdjustmentsWsDTO(StockLevelAdjustmentWsDTO... stockLevelAdjustmentWsDTO) Populates aStockLevelAdjustmentsWsDTOfor a POST call, to add a list of StockLevelAdjustmentWsDTOprotected StockLevelAdjustmentWsDTOcreateStockLevelAdjustmentWsDTO(String reason, long quantity) Populates aStockLevelAdjustmentWsDTOfor a POST call, to add a StockLevel adjustment in the systemprotected StockLevelAdjustmentWsDTOcreateStockLevelAdjustmentWsDTO(String reason, long quantity, String comment) Populates aStockLevelAdjustmentWsDTOfor a POST call, to add a StockLevel adjustment in the systemprotected StockLevelWsDtocreateStockLevelRequest(String productCode, String warehouseCode, Integer initialQuantityOnHand) Populates aStockLevelWsDtofor a POST call, to add a StockLevel in the systemvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetup()voidvoidvoidvoidvoidMethods inherited from class de.hybris.platform.warehousingwebservices.warehousingwebservices.util.BaseWarehousingWebservicesIntegrationTest
assertBadRequestWithContent, cleanUpData, cleanUpModel, createApprovedReturnRequest, createConsignmentReallocationWsDTO, createFailedSourcedOrder, createPackagingInfo, createReturnAndReadyToAcceptGoods, createShippedConsignmentAndOrder, createUsAddress, deleteDefaultSecuredRestCall, deleteWarehousesFromPointOfService, getAllConsignmentsByDefault, getAllWarehousesByDefault, getBusinessProcessService, getConsignmentEntriesByDefault, getConsignmentsForCodeByDefault, getConsignmentStatusByDefault, getDeclineReasonsByDefault, getDefaultSecuredRestCall, getEmptySecuredRestCall, getEventService, getModelService, getPackagingInfoByDefault, getPointOfServiceByDefault, getReturnCallbackService, getSourcingLocationsByDefault, getStockLevelAdjustmentReasons, getStockLevelsForWarehouseCodeByDefault, getWarehouseByDefault, getWarehouseForPointOfServiceByDefault, manuallyReleasePaymentCaptureRestCall, manuallyReleaseTaxCommitRestCall, postAcceptGoodsByDefault, postAsnByDefault, postBodySecuredRestCall, postConfirmAsnReceiptByDefault, postDefaultSecuredRestCall, postDefaultSecuredRestCall, postEmptyBodySecuredRestCall, postPackConsignmentDefault, postPackConsignmentWithPrintSlip, postPickConsignmentDefault, postPickConsignmentWithPrintSlip, postPutOrderOnHold, postResourceOrder, postStockLevelAdjustmentByDefault, postStockLevelAdjustmentByDefault_Reponse, postStockLevelByDefault, postStockLevelByDefault_WithReturnType_StockLevelWsDto, postTakePaymentRestCall, postUpdatePointOfServiceWarehouses, putDefaultSecuredRestCall, putUpdatePointOfServiceAddress, saveAll, setBusinessProcessService, setModelService, setReturnCallbackService, startConsignmentProcess, updatePackagingInfoByDefault, waitForReturnProcessCompleteMethods inherited from class de.hybris.platform.warehousingwebservices.warehousingwebservices.util.BaseWebservicesIntegrationTest
getEnumerationService, getWsSecuredRequestBuilder, setEnumerationServiceMethods 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
-
Constructor Details
-
StockLevelsControllersIntegrationTest
public StockLevelsControllersIntegrationTest()
-
-
Method Details
-
setup
public void setup()- Overrides:
setupin classBaseWarehousingWebservicesIntegrationTest
-
testGetStockLevelsForWarehouseCode
public void testGetStockLevelsForWarehouseCode() -
testPostStockLevel
public void testPostStockLevel() -
testPostStockLevelEmptyProductCode
public void testPostStockLevelEmptyProductCode() -
testPostStockLevelNegativeInitialOnHandQuantity
public void testPostStockLevelNegativeInitialOnHandQuantity() -
testPostStockLevelEmptyWarehouseCode
public void testPostStockLevelEmptyWarehouseCode() -
getAllStockLevelAdjustmentReasons
public void getAllStockLevelAdjustmentReasons() -
postCreateStockLevelAdjustment
public void postCreateStockLevelAdjustment() -
postCreateStockLevelAdjustment_invalid_Reason
public void postCreateStockLevelAdjustment_invalid_Reason() -
postCreateStockLevelAdjustment_valid_LowercaseReason
public void postCreateStockLevelAdjustment_valid_LowercaseReason() -
postCreateMultiStockLevelAdjustment
public void postCreateMultiStockLevelAdjustment() -
postCreateStockLevelAdjustment_WithComment
public void postCreateStockLevelAdjustment_WithComment() -
postCreateStockLevelAdjustment_WithBin
public void postCreateStockLevelAdjustment_WithBin() -
postCreateStockLevelAdjustment_WithReleaseDate
public void postCreateStockLevelAdjustment_WithReleaseDate() -
postCreateStockLevelAdjustment_WithBin_ForAsnNotReceived
public void postCreateStockLevelAdjustment_WithBin_ForAsnNotReceived() -
postCreateStockLevelAdjustment_WithBin_ForAsnReceived
public void postCreateStockLevelAdjustment_WithBin_ForAsnReceived() -
getStockLevelWithGeneralizedException
public void getStockLevelWithGeneralizedException() -
getStockLevelWithUnknownException
public void getStockLevelWithUnknownException() -
getStockLevelWithForwardException
public void getStockLevelWithForwardException() -
createStockLevelRequest
protected StockLevelWsDto createStockLevelRequest(String productCode, String warehouseCode, Integer initialQuantityOnHand) Populates aStockLevelWsDtofor a POST call, to add a StockLevel in the system- Parameters:
productCode-warehouseCode-initialQuantityOnHand-- Returns:
-
createStockLevelAdjustmentWsDTO
protected StockLevelAdjustmentWsDTO createStockLevelAdjustmentWsDTO(String reason, long quantity, String comment) Populates aStockLevelAdjustmentWsDTOfor a POST call, to add a StockLevel adjustment in the system- Parameters:
reason-quantity-comment-- Returns:
- StockLevelAdjustmentWsDTO
-
createStockLevelAdjustmentWsDTO
Populates aStockLevelAdjustmentWsDTOfor a POST call, to add a StockLevel adjustment in the system- Parameters:
reason-quantity-- Returns:
- StockLevelAdjustmentWsDTO
-
createStockLevelAdjustmentsWsDTO
protected StockLevelAdjustmentsWsDTO createStockLevelAdjustmentsWsDTO(StockLevelAdjustmentWsDTO... stockLevelAdjustmentWsDTO) Populates aStockLevelAdjustmentsWsDTOfor a POST call, to add a list of StockLevelAdjustmentWsDTO- Parameters:
stockLevelAdjustmentWsDTO-- Returns:
-