Class MockConsignmentService
- java.lang.Object
-
- de.hybris.platform.sap.orderexchange.mocks.MockConsignmentService
-
- All Implemented Interfaces:
ConsignmentService
public class MockConsignmentService extends java.lang.Object implements ConsignmentService
Mock to be used for spring tests
-
-
Constructor Summary
Constructors Constructor Description MockConsignmentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsignmentModelcreateConsignment(AbstractOrderModel arg0, java.lang.String arg1, java.util.List<AbstractOrderEntryModel> arg2)Creates the consignment.WarehouseModelgetWarehouse(java.util.List<AbstractOrderEntryModel> arg0)Gets the warehouse.
-
-
-
Method Detail
-
createConsignment
public ConsignmentModel createConsignment(AbstractOrderModel arg0, java.lang.String arg1, java.util.List<AbstractOrderEntryModel> arg2) throws ConsignmentCreationException
Description copied from interface:ConsignmentServiceCreates the consignment.- Specified by:
createConsignmentin interfaceConsignmentService- Parameters:
arg0- the order. If Order is instance of OrderModel type then it is taken to relation to created consignmentarg1- the codearg2- the order entries- Returns:
- the consignment model
- Throws:
ConsignmentCreationException- in the case of any inconsistency (e.g. warehouses not found)
-
getWarehouse
public WarehouseModel getWarehouse(java.util.List<AbstractOrderEntryModel> arg0)
Description copied from interface:ConsignmentServiceGets the warehouse. Simple random one from possible- Specified by:
getWarehousein interfaceConsignmentService- Parameters:
arg0- the order entries- Returns:
- the warehouse
-
-