Class ReservationOriginDestinationOfferPricingInfoHandlerTest
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.ReservationOriginDestinationOfferPricingInfoHandlerTest
Unit test class for ReservationOriginDestinationOfferPricingInfoHandler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidgiven: Cart with FareProducts only when: there is no Ancillary products then: offer prices aren't populated.voidgiven: Cart with FareProducts and Ancillaries when: there is no ReservationItems then: offer prices aren't populated.voidgiven: Cart with FareProducts and Ancillaries when: there is no ReservationPricingInfo then: offer prices aren't populated.voidgiven: Cart with FareProducts and Ancillaries when: the itinerary has a multi sector then: offer prices for the ancillaries selected by respective travelers are set in ReservationOfferPricingInfoData.voidgiven: Cart with FareProducts and Ancillaries
-
Constructor Details
-
ReservationOriginDestinationOfferPricingInfoHandlerTest
public ReservationOriginDestinationOfferPricingInfoHandlerTest()
-
-
Method Details
-
setUp
public void setUp() -
testPopulateSingleSector
public void testPopulateSingleSector()given: Cart with FareProducts and Ancillarieswhen: the itinerary has a single sector
then: offer prices for the ancillaries selected by respective travelers are set in ReservationOfferPricingInfoData.
-
testPopulateMultiSector
public void testPopulateMultiSector()given: Cart with FareProducts and Ancillaries when: the itinerary has a multi sector then: offer prices for the ancillaries selected by respective travelers are set in ReservationOfferPricingInfoData. -
testNoReservationPricingInfo
public void testNoReservationPricingInfo()given: Cart with FareProducts and Ancillaries when: there is no ReservationPricingInfo then: offer prices aren't populated. -
testNoReservationItems
public void testNoReservationItems()given: Cart with FareProducts and Ancillaries when: there is no ReservationItems then: offer prices aren't populated. -
testNoAncillaries
public void testNoAncillaries()given: Cart with FareProducts only when: there is no Ancillary products then: offer prices aren't populated.
-