Class ReservationTotalFareHandlerTest
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.ReservationTotalFareHandlerTest
Unit test class for ReservationTotalFareHandler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidgiven: CartModel with selected products When: in Amendment flow Then: calculated extra amount to pay is set in ReservationData.totalToPay.voidgiven: CartModel with selected products When: in Purchase flow Then: calculated total prices of the cart is set in ReservationData.totalFare.
-
Constructor Details
-
ReservationTotalFareHandlerTest
public ReservationTotalFareHandlerTest()
-
-
Method Details
-
setUp
public void setUp() -
testPurchaseFlow
public void testPurchaseFlow()given: CartModel with selected products When: in Purchase flow Then: calculated total prices of the cart is set in ReservationData.totalFare. -
testAmendmentFlow
public void testAmendmentFlow()given: CartModel with selected products When: in Amendment flow Then: calculated extra amount to pay is set in ReservationData.totalToPay.
-