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 testingWarehousingAsnsController
-
-
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, warehousingReturnService
-
Fields inherited from class de.hybris.platform.warehousingwebservices.warehousingwebservices.util.BaseWebservicesIntegrationTest
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 AsnsControllerIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AsnEntryWsDTO
createAsnEntryWsDTO(java.lang.String productCode, java.lang.Integer quantity)
Populates aAsnEntryWsDTO
protected AsnWsDTO
createAsnRequest(java.lang.String warehouseCode, java.lang.String pointOfServiceName, java.util.List<AsnEntryWsDTO> asnEntries, java.lang.String extId, java.util.Date releaseDate, java.lang.String comment)
Populates aAsnWsDTO
for a POST call, to add an ASN in the systemvoid
prepareTestData()
Prepares data required for the testvoid
setup()
void
testConfirmAsnReceipt()
Tests the cancellation of Asnvoid
testInternalIdGeneration()
Tests the InternalId generation for imported Asnvoid
testPostAsnEmptyExternalId()
Tests the controller behavior when obtaining REST call without ExternalId specifiedvoid
testPostAsnEmptyPosName()
Tests the controller behavior when obtaining REST call without PointOfService name specifiedvoid
testPostAsnEmptyReleaseDate()
Tests the controller behavior when obtaining REST call without releaseDate specifiedvoid
testPostAsnEmptyWarehouseCode()
Tests the controller behavior when obtaining REST call without WarehouseCode specified-
Methods 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, waitForReturnProcessComplete
-
Methods inherited from class de.hybris.platform.warehousingwebservices.warehousingwebservices.util.BaseWebservicesIntegrationTest
getEnumerationService, getWsSecuredRequestBuilder, setEnumerationService
-
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
-
-
-
-
Method Detail
-
setup
public void setup()
- Overrides:
setup
in 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(java.lang.String warehouseCode, java.lang.String pointOfServiceName, java.util.List<AsnEntryWsDTO> asnEntries, java.lang.String extId, java.util.Date releaseDate, java.lang.String comment)
Populates aAsnWsDTO
for a POST call, to add an ASN in the system- Parameters:
warehouseCode
-pointOfServiceName
-asnEntries
-extId
-releaseDate
-comment
-- Returns:
- asnWsDTO
-
createAsnEntryWsDTO
protected AsnEntryWsDTO createAsnEntryWsDTO(java.lang.String productCode, java.lang.Integer quantity)
Populates aAsnEntryWsDTO
- Parameters:
productCode
-quantity
-- Returns:
- asnEntryWsDTO
-
-