Class AsnsControllerIntegrationTest
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.AsnsControllerIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class AsnsControllerIntegrationTest
extends BaseWarehousingWebservicesIntegrationTest
Integration test for testing
WarehousingAsnsController-
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 AsnEntryWsDTOcreateAsnEntryWsDTO(String productCode, Integer quantity) Populates aAsnEntryWsDTOprotected AsnWsDTOcreateAsnRequest(String warehouseCode, String pointOfServiceName, List<AsnEntryWsDTO> asnEntries, String extId, Date releaseDate, String comment) Populates aAsnWsDTOfor a POST call, to add an ASN in the systemvoidPrepares data required for the testvoidsetup()voidTests the cancellation of AsnvoidTests the InternalId generation for imported AsnvoidTests the controller behavior when obtaining REST call without ExternalId specifiedvoidTests the controller behavior when obtaining REST call without PointOfService name specifiedvoidTests the controller behavior when obtaining REST call without releaseDate specifiedvoidTests the controller behavior when obtaining REST call without WarehouseCode specifiedMethods 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
-
AsnsControllerIntegrationTest
public AsnsControllerIntegrationTest()
-
-
Method Details
-
setup
public void setup()- Overrides:
setupin classBaseWarehousingWebservicesIntegrationTest
-
prepareTestData
public void prepareTestData()Prepares data required for the test -
testPostAsnEmptyWarehouseCode
public void testPostAsnEmptyWarehouseCode()Tests the controller behavior when obtaining REST call without WarehouseCode specified -
testPostAsnEmptyPosName
public void testPostAsnEmptyPosName()Tests the controller behavior when obtaining REST call without PointOfService name specified -
testPostAsnEmptyExternalId
public void testPostAsnEmptyExternalId()Tests the controller behavior when obtaining REST call without ExternalId specified -
testPostAsnEmptyReleaseDate
public void testPostAsnEmptyReleaseDate()Tests the controller behavior when obtaining REST call without releaseDate specified -
testInternalIdGeneration
public void testInternalIdGeneration()Tests the InternalId generation for imported Asn -
testConfirmAsnReceipt
public void testConfirmAsnReceipt()Tests the cancellation of Asn -
createAsnRequest
protected AsnWsDTO createAsnRequest(String warehouseCode, String pointOfServiceName, List<AsnEntryWsDTO> asnEntries, String extId, Date releaseDate, String comment) Populates aAsnWsDTOfor a POST call, to add an ASN in the system- Parameters:
warehouseCode-pointOfServiceName-asnEntries-extId-releaseDate-comment-- Returns:
- asnWsDTO
-
createAsnEntryWsDTO
Populates aAsnEntryWsDTO- Parameters:
productCode-quantity-- Returns:
- asnEntryWsDTO
-