Class BasicReservationItemHandlerTest
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.BasicReservationItemHandlerTest
Unit test class for BasicReservationItemHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgiven: AbstractOrderModel with fareProducts and Itinerary is a oneway multi sector(2 sectors).voidgiven: AbstractOrderModel with fareProducts and Itinerary is a return multi sector(2 sectors).voidgiven: AbstractOrderModel with fareProducts and Itinerary is a single sector.voidgiven: null AbstractOrderModel when: ReservationItems are populated then: reservationData has no reservation items.voidgiven: empty AbstractOrderModel when: ReservationItems are populated then: reservationData has no reservation items.
-
Constructor Details
-
BasicReservationItemHandlerTest
public BasicReservationItemHandlerTest()
-
-
Method Details
-
testNullAbstractOrderModel
public void testNullAbstractOrderModel()given: null AbstractOrderModel when: ReservationItems are populated then: reservationData has no reservation items. -
testNullEmptyOrderEntries
public void testNullEmptyOrderEntries()given: empty AbstractOrderModel when: ReservationItems are populated then: reservationData has no reservation items. -
testFareProductEntriesSingleSector
public void testFareProductEntriesSingleSector()given: AbstractOrderModel with fareProducts and Itinerary is a single sector. when: ReservationItems are populated then: reservationData has 1 reservation items. -
testFareProductEntriesMultiSector
public void testFareProductEntriesMultiSector()given: AbstractOrderModel with fareProducts and Itinerary is a oneway multi sector(2 sectors). when: ReservationItems are populated then: reservationData has 1 reservation items. -
testFareProductEntriesMultiSectorReturn
public void testFareProductEntriesMultiSectorReturn()given: AbstractOrderModel with fareProducts and Itinerary is a return multi sector(2 sectors). when: ReservationItems are populated then: reservationData has 2 reservation items.
-