Class BaseWarehousingFacadeIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.servicelayer.ServicelayerTransactionalTest
de.hybris.platform.warehousingfacades.util.BaseFacadeIntegrationTest
de.hybris.platform.warehousingfacades.util.BaseWarehousingFacadeIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
WarehousingConsignmentFacadeIntegrationTest,WarehousingPointOfServiceFacadeIntegrationTest,WarehousingReturnFacadeIntegrationTest,WarehousingStockLevelFacadeIntegrationTest
@IntegrationTest
public class BaseWarehousingFacadeIntegrationTest
extends BaseFacadeIntegrationTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Addressesprotected AllocationServiceprotected BaseStoresprotected static final intprotected static final intprotected static final Stringprotected DeliveryModesprotected EnumerationServiceprotected EventServiceprotected static final org.slf4j.Loggerprotected ModelServiceprotected Ordersprotected PointsOfServiceprotected Productsprotected ReturnCallbackServiceprotected SourcingServiceprotected StockLevelsprotected Usersprotected Warehousesprotected WarehousingReturnServiceFields inherited from class de.hybris.platform.warehousingfacades.util.BaseFacadeIntegrationTest
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 RefundEntryModelapproveDefaultReturn(RefundEntryModel refundEntry) approve the returnprotected OrderModelcreate a default order and consignmentprotected RefundEntryModelcreate a default returnRefund and approve itprotected PackagingInfoDataCreates a new packaging information for a consignment with default values.protected PackagingInfoDatacreatePackagingInfo(String width, String height, String length, String grossWeight, String insuredValue, String dimensionUnit, String weightUnit) Creates a new packaging information for a consignment with the given attributes.protected PageableDataCreates a default pageableDataprotected PageableDatacreatePageable(int page, int pageSize, String sort) Creates a pageableData with provided page, pageSize and sortprotected RefundEntryModelcreate a default order and consignmentprotected ReturnCallbackServicevoidsetEnumerationService(EnumerationService enumerationService) voidsetReturnCallbackService(ReturnCallbackService returnCallbackService) voidvoidMethods 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
-
sourcingService
-
modelService
-
orders
-
baseStores
-
warehouses
-
addresses
-
stockLevels
-
pointsOfService
-
products
-
allocationService
-
warehousingReturnService
-
users
-
deliveryModes
-
eventService
-
returnCallbackService
-
enumerationService
-
DEFAULT_CURRENT_PAGE
protected static final int DEFAULT_CURRENT_PAGE- See Also:
-
DEFAULT_PAGE_SIZE
protected static final int DEFAULT_PAGE_SIZE- See Also:
-
DEFAULT_SORT
- See Also:
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
BaseWarehousingFacadeIntegrationTest
public BaseWarehousingFacadeIntegrationTest()
-
-
Method Details
-
setupShopper
public void setupShopper() -
setupBaseStore
public void setupBaseStore() -
createDefaultConsignmentAndOrder
create a default order and consignment- Returns:
- OrderModel
-
createDefaultReturnRequest
create a default returnRefund and approve it- Parameters:
order-- Returns:
- RefundEntryModel
-
approveDefaultReturn
approve the return- Parameters:
refundEntry-- Returns:
- RefundEntryModel
-
createReturnAndReadyToAcceptGoods
create a default order and consignment- Returns:
- RefundEntryModel
-
createPageable
Creates a pageableData with provided page, pageSize and sort- Parameters:
page- current page numberpageSize- number of items in a pagesort- sorting the results ascending or descending- Returns:
- a pageableData
-
createPackagingInfo
Creates a new packaging information for a consignment with default values.- Returns:
- the new
PackagingInfoData
-
createPackagingInfo
protected PackagingInfoData createPackagingInfo(String width, String height, String length, String grossWeight, String insuredValue, String dimensionUnit, String weightUnit) Creates a new packaging information for a consignment with the given attributes.- Parameters:
width- the width of the packageheight- the height of the packagelength- the length of the packagegrossWeight- the gross weight of the packageinsuredValue- the insured value of the packagedimensionUnit- the dimension unit of the packageweightUnit- the weight unit of the package- Returns:
- the new
PackagingInfoData
-
createPageable
Creates a default pageableData- Returns:
- a pageableData
-
getEventService
-
getReturnCallbackService
-
setReturnCallbackService
-
getEnumerationService
-
setEnumerationService
-