Class DefaultBookingFacadeTest

java.lang.Object
de.hybris.platform.travelfacades.impl.DefaultBookingFacadeTest

@UnitTest public class DefaultBookingFacadeTest extends Object
Unit Test for the BookingFacade implementation
  • Constructor Details

    • DefaultBookingFacadeTest

      public DefaultBookingFacadeTest()
  • Method Details

    • setup

      public void setup()
    • cleanUp

      public void cleanUp() throws Exception
      Throws:
      Exception
    • testIsCancelPossible

      public void testIsCancelPossible()
    • testIsCancelPossibleOrderModelNotFound

      public void testIsCancelPossibleOrderModelNotFound()
    • testGetRefundTotal

      public void testGetRefundTotal()
    • testCancelOrder

      public void testCancelOrder()
    • testCancelOrderNoOrderFound

      public void testCancelOrderNoOrderFound()
    • testGetBookingByBookingReference

      public void testGetBookingByBookingReference()
    • testRetrieveGlobalReservationData

      public void testRetrieveGlobalReservationData()
    • testGetBookerEmailIDWithEmptyGlobalReservationData

      public void testGetBookerEmailIDWithEmptyGlobalReservationData()
    • testGetBookerEmailIDWithReservationData

      public void testGetBookerEmailIDWithReservationData()
    • testGetBookerEmailIDWithReservationDataWrongCredentials

      public void testGetBookerEmailIDWithReservationDataWrongCredentials()
    • testGetBookerEmailIDWithAccommodationReservationData

      public void testGetBookerEmailIDWithAccommodationReservationData()
    • testGetBookerEmailIDWithAccommodationReservationDataWrongCredentials

      public void testGetBookerEmailIDWithAccommodationReservationDataWrongCredentials()
    • testValidateAndReturnBookerEmailIdForInvalidBookingReference

      public void testValidateAndReturnBookerEmailIdForInvalidBookingReference()
    • testValidateAndReturnBookerEmailIdNoReservationItems

      public void testValidateAndReturnBookerEmailIdNoReservationItems()
    • testValidateAndReturnBookerEmailIdNoTravellerData

      public void testValidateAndReturnBookerEmailIdNoTravellerData()
    • testValidateAndReturnBookerEmailIdAnonymousUser

      public void testValidateAndReturnBookerEmailIdAnonymousUser()
    • testValidateAndReturnBookerEmailIdCustomer

      public void testValidateAndReturnBookerEmailIdCustomer()
    • testValidateAndReturnBookerEmailIdNameDontMatch

      public void testValidateAndReturnBookerEmailIdNameDontMatch()
    • testValidateAndReturnBookerEmailIdNonPassenger

      public void testValidateAndReturnBookerEmailIdNonPassenger()
    • testCreateRefundPaymentTransaction

      public void testCreateRefundPaymentTransaction()
    • testAmendOrder

      public void testAmendOrder()
    • testAmendOrderErrorCreatingCart

      public void testAmendOrderErrorCreatingCart()
    • testBeginTravellerCancellation

      public void testBeginTravellerCancellation()
    • testBeginTravellerCancellationNoCartCreated

      public void testBeginTravellerCancellationNoCartCreated()
    • testGetTotalToPay

      public void testGetTotalToPay()
    • testCancelTravellerTotalToPayMoreThanZero

      public void testCancelTravellerTotalToPayMoreThanZero()
    • testCancelTravellerNoTotalToPay

      public void testCancelTravellerNoTotalToPay()
    • testCancelTravellerValidCart

      public void testCancelTravellerValidCart() throws de.hybris.platform.order.InvalidCartException
      Throws:
      de.hybris.platform.order.InvalidCartException
    • testCancelTravellerInValidCart

      public void testCancelTravellerInValidCart() throws de.hybris.platform.order.InvalidCartException
      Throws:
      de.hybris.platform.order.InvalidCartException
    • testNewCancelTravellerTotalToPayMoreThanZero

      public void testNewCancelTravellerTotalToPayMoreThanZero()
    • testNewCancelTravellerTotalToPayMoreThanZeroAndNullTravellerData

      public void testNewCancelTravellerTotalToPayMoreThanZeroAndNullTravellerData()
    • testNewCancelTravellerNoTotalToPay

      public void testNewCancelTravellerNoTotalToPay()
    • testNewCancelTravellerValidCart

      public void testNewCancelTravellerValidCart() throws de.hybris.platform.order.InvalidCartException
      Throws:
      de.hybris.platform.order.InvalidCartException
    • testNewCancelTravellerInValidCart

      public void testNewCancelTravellerInValidCart() throws de.hybris.platform.order.InvalidCartException
      Throws:
      de.hybris.platform.order.InvalidCartException
    • testGetCurrentUserUidLoggedInCustomer

      public void testGetCurrentUserUidLoggedInCustomer()
    • testGetCurrentUserUidAnonymousUser

      public void testGetCurrentUserUidAnonymousUser()
    • testAtleastOneAdultTravellerRemaining

      public void testAtleastOneAdultTravellerRemaining()
    • testIsAmendment

      public void testIsAmendment()
    • testIsAmendmentForActiveStatus

      public void testIsAmendmentForActiveStatus()
    • testValidateUserForBookingAnonymousUser

      public void testValidateUserForBookingAnonymousUser()
    • testValidateUserForBookingInvalidBooking

      public void testValidateUserForBookingInvalidBooking() throws ParseException
      Throws:
      ParseException
    • testValidateUserForBookingValidBooking

      public void testValidateUserForBookingValidBooking() throws ParseException
      Throws:
      ParseException
    • testGetFullAccommodationBooking

      public void testGetFullAccommodationBooking()
    • testGetGlobalTravelReservationData

      public void testGetGlobalTravelReservationData()
    • testGetBasicAccommodationBookingFromCart

      public void testGetBasicAccommodationBookingFromCart()
    • testGetGuestOccupanciesFromCart

      public void testGetGuestOccupanciesFromCart()
    • testGetGuestOccupanciesFromCartForNullOrderEntryGroup

      public void testGetGuestOccupanciesFromCartForNullOrderEntryGroup()
    • testAmendAddRoom

      public void testAmendAddRoom()
    • testAmendAddRoomForNullCart

      public void testAmendAddRoomForNullCart()
    • testBuildAccommodationDetailsQueryFromCart

      public void testBuildAccommodationDetailsQueryFromCart()
    • testGetNewReservedRoomStays

      public void testGetNewReservedRoomStays()
    • testGetOldReservedRoomStays

      public void testGetOldReservedRoomStays()
    • testUpdateAccommodationOrderEntryGroup

      public void testUpdateAccommodationOrderEntryGroup()
    • testValidateB2BUser

      public void testValidateB2BUser()
    • testValidateUserForCheckout

      public void testValidateUserForCheckout()
    • testValidateUserForAdditionalSecurityAmendmentCheckout

      public void testValidateUserForAdditionalSecurityAmendmentCheckout()
    • testGetBookingByBookingReferenceAndAmendingOrder

      public void testGetBookingByBookingReferenceAndAmendingOrder()
    • testGetFullAccommodationBookingForAmendOrder

      public void testGetFullAccommodationBookingForAmendOrder()
    • testGetBookingTotal

      public void testGetBookingTotal()
    • testGetNextScheduledTransportOfferingData

      public void testGetNextScheduledTransportOfferingData()
    • testGetDisruptedReservation

      public void testGetDisruptedReservation()
    • testChangeDatesForAccommodationBookingForEmptyRoomStays

      public void testChangeDatesForAccommodationBookingForEmptyRoomStays()
    • testChangeDatesForAccommodationBookingForDeletingEntriesWithNoCart

      public void testChangeDatesForAccommodationBookingForDeletingEntriesWithNoCart()
    • testChangeDatesForAccommodationBookingForDeletingEntriesWithCartHavingNoEntries

      public void testChangeDatesForAccommodationBookingForDeletingEntriesWithCartHavingNoEntries()
    • testChangeDatesForAccommodationBookingForEmptyChangeDatePaymentResults

      public void testChangeDatesForAccommodationBookingForEmptyChangeDatePaymentResults()
    • testChangeDatesForAccommodationBookingForAccommodationOrderEntryGroupWithDifferentRoomRefNum

      public void testChangeDatesForAccommodationBookingForAccommodationOrderEntryGroupWithDifferentRoomRefNum()
    • testChangeDatesForAccommodationBookingForErrorToAddRoomToCart

      public void testChangeDatesForAccommodationBookingForErrorToAddRoomToCart()
    • testChangeDatesForAccommodationBookingForExcptionToAddRoomToCart

      public void testChangeDatesForAccommodationBookingForExcptionToAddRoomToCart() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • testChangeDatesForAccommodationBooking

      public void testChangeDatesForAccommodationBooking() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • testAcceptOrder

      public void testAcceptOrder()
    • testUnlinkBooking

      public void testUnlinkBooking()
    • testMapOrderToUserAccount

      public void testMapOrderToUserAccount()
    • testAddRequestToRoomStayBookingForException

      public void testAddRequestToRoomStayBookingForException()
    • testAddRequestToRoomStayBooking

      public void testAddRequestToRoomStayBooking()
    • testRemoveRequestFromRoomStayBookingForException

      public void testRemoveRequestFromRoomStayBookingForException()
    • testRemoveRequestFromRoomStayBooking

      public void testRemoveRequestFromRoomStayBooking()
    • testBeginPartialOrderCancellation

      public void testBeginPartialOrderCancellation()
    • testCancelPartialOrder

      public void testCancelPartialOrder() throws de.hybris.platform.order.InvalidCartException
      Throws:
      de.hybris.platform.order.InvalidCartException
    • testCancelPartialOrderForInvalidCartException

      public void testCancelPartialOrderForInvalidCartException() throws de.hybris.platform.order.InvalidCartException
      Throws:
      de.hybris.platform.order.InvalidCartException
    • testIsCurrentCartOfTypeForEmptySessionCart

      public void testIsCurrentCartOfTypeForEmptySessionCart()
    • testIsCurrentCartOfType

      public void testIsCurrentCartOfType()
    • testIsCurrentCartOfTypeForNullOrderEntryType

      public void testIsCurrentCartOfTypeForNullOrderEntryType()
    • testGetOrderTotalPaidForOrderEntryType

      public void testGetOrderTotalPaidForOrderEntryType()
    • testPlaceOrderForInvalidCartException

      public void testPlaceOrderForInvalidCartException() throws de.hybris.platform.order.InvalidCartException
      Throws:
      de.hybris.platform.order.InvalidCartException
    • testPlaceOrder

      public void testPlaceOrder() throws de.hybris.platform.order.InvalidCartException
      Throws:
      de.hybris.platform.order.InvalidCartException
    • testGetOrderTotalToPayForOrderEntryType

      public void testGetOrderTotalToPayForOrderEntryType()