Class OriginDestinationHandlerTest
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OriginDestinationHandlerTest
Unit test class for OriginDestinationHandler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Initializing test datavoidgiven: TransportOfferings and OfferGroups.voidvoidgiven: TransportOfferings and OfferGroups.
-
Constructor Details
-
OriginDestinationHandlerTest
public OriginDestinationHandlerTest()
-
-
Method Details
-
setUp
public void setUp()Initializing test data -
testPopulateSingleSector
public void testPopulateSingleSector()given: TransportOfferings and OfferGroups. when: Journey type is a singleSector Then: Creates One OriginDestinationOption for all the transportOfferings if the OfferGroup type is configured at route level. Creates OriginDestinationOption per TransportOffering, if the OfferGroup type is configured at transport offering level -
testPopulateMultiSector
public void testPopulateMultiSector()given: TransportOfferings and OfferGroups. when: Journey type is a multiSector Then: Creates One OriginDestinationOption for all the transportOfferings if the OfferGroup type is configured at route level. Creates OriginDestinationOption per TransportOffering, if the OfferGroup type is configured at transport offering level -
testPopulateReturnSector
public void testPopulateReturnSector()
-