Class TravellerBreakdownHandlerTest
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.TravellerBreakdownHandlerTest
Unit Test class to test TravellerBreakdownHandler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgiven: an Itinerary with ancillary products Meal1 offered at 10 GBP each and was included in the bundle for Adult1, Adult2, Child1 and Adult1 added another Meal1 in cart.
-
Constructor Details
-
TravellerBreakdownHandlerTest
public TravellerBreakdownHandlerTest()
-
-
Method Details
-
testPopulate
public void testPopulate()given: an Itinerary with ancillary products Meal1 offered at 10 GBP each and was included in the bundle for Adult1, Adult2, Child1 and Adult1 added another Meal1 in cart. Meal2 offered at 15 GBP each and was added by Adult2 in cart Bag23Kg offered at 25 GBP each. When: Ancillary products are offered in the offerResponse. Then: following is expected: Response should contain 2 offerGroups, one for Meal and other for HoldItem OfferGroup of Meal should contain 2 OfferPricingInfo one for Meal1 and other for Meal 2 All products TravellerBreakDown should have 3 elements for Adult1, Adult2, Child1 Price for Meal1 product for Adult1 should be 20 GBP quantity for Meal1 product for Adult1 is 2 (one from bundle and one as selected) Price for Meal1 product for Adult2 should be 10 GBP quantity for Meal1 product for Adult2 is 1 Price for Meal1 product for Child1 should be 10 GBP quantity for Meal1 product for Child1 is 1 Price for Meal2 product for Adult1 should be 0.0 GBP quantity for Meal2 product for Adult1 is 0 Price for Meal2 product for Adult2 should be 15 GBP quantity for Meal2 product for Adult2 is 1 Price for Meal2 product for Child1 should be 0.0 GBP quantity for Meal2 product for Child1 is 0 Price for Bag23Kg product for Adult1 should be 0.0 GBP quantity for Bag23Kg product for Adult1 is 0 Price for Bag23Kg product for Adult2 should be 0.0 GBP quantity for Bag23Kg product for Adult2 is 0 Price for Bag23Kg product for Child1 should be 0.0 GBP quantity for Bag23Kg product for Child1 is 0
-