Class DefaultTravelCartFacadeTest

java.lang.Object
de.hybris.platform.travelfacades.order.impl.DefaultTravelCartFacadeTest

@UnitTest public class DefaultTravelCartFacadeTest extends Object
Junit Test Suite for DefaultTravelCartFacade
  • Constructor Details

    • DefaultTravelCartFacadeTest

      public DefaultTravelCartFacadeTest()
  • Method Details

    • setUp

      public void setUp()
    • cleanUp

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

      public void testAddTransportOfferingCodeToCartEntryForBundle()
      Test method for addtransportOfferingToCartEntryForBundle
    • populatePropertiesMap

      protected Map<String,Object> populatePropertiesMap(List<String> transportOfferingCodes, String travelRouteCode, List<TravellerModel> travellerList, int originDestinationRefNumber)
    • testAddTransportOfferingCodeToCartEntry

      public void testAddTransportOfferingCodeToCartEntry()
      Test method for addtransportOfferingToCartEntry
    • testAddToCart

      public void testAddToCart() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • testAddPropertiesToCartEntry

      public void testAddPropertiesToCartEntry()
    • testAddPropertiesToCartEntryEmptyParams

      public void testAddPropertiesToCartEntryEmptyParams()
    • testaddPropertiesToCartEntryEmptyAddToCartCriteria

      public void testaddPropertiesToCartEntryEmptyAddToCartCriteria()
    • testAddSelectedAccommodationToCart

      public void testAddSelectedAccommodationToCart()
    • testRemoveSelectedAccommodationFromCart

      public void testRemoveSelectedAccommodationFromCart()
    • testGetOrderEntry

      public void testGetOrderEntry()
    • testGetOrderEntryNullOrderModel

      public void testGetOrderEntryNullOrderModel()
    • testIsAmendmentCartAmendment

      public void testIsAmendmentCartAmendment()
    • testIsAdditionalSecurityActive

      public void testIsAdditionalSecurityActive()
    • testIsAdditionalSecurityActiveWithNoSessionCart

      public void testIsAdditionalSecurityActiveWithNoSessionCart()
    • testIsAmendmentCartPurchase

      public void testIsAmendmentCartPurchase()
    • testRemoveDeliveryAddress

      public void testRemoveDeliveryAddress()
    • testGetOriginalorderCode

      public void testGetOriginalorderCode()
    • testApplyVoucher

      public void testApplyVoucher() throws de.hybris.platform.commercefacades.voucher.exceptions.VoucherOperationException, de.hybris.platform.order.exceptions.CalculationException
      Throws:
      de.hybris.platform.commercefacades.voucher.exceptions.VoucherOperationException
      de.hybris.platform.order.exceptions.CalculationException
    • testApplyVoucherException

      public void testApplyVoucherException() throws de.hybris.platform.commercefacades.voucher.exceptions.VoucherOperationException, de.hybris.platform.order.exceptions.CalculationException
      Throws:
      de.hybris.platform.commercefacades.voucher.exceptions.VoucherOperationException
      de.hybris.platform.order.exceptions.CalculationException
    • testRemoveVoucher

      public void testRemoveVoucher() throws de.hybris.platform.commercefacades.voucher.exceptions.VoucherOperationException, de.hybris.platform.order.exceptions.CalculationException
      Throws:
      de.hybris.platform.commercefacades.voucher.exceptions.VoucherOperationException
      de.hybris.platform.order.exceptions.CalculationException
    • testAddToCartBundle

      public void testAddToCartBundle() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • testAddToCartBundleCommerceCartException

      public void testAddToCartBundleCommerceCartException() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • testAddToCartBundlePriceLevelNull

      public void testAddToCartBundlePriceLevelNull() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • testIsProductAvailable

      public void testIsProductAvailable()
    • testIsProductAvailableStockUnavailable

      public void testIsProductAvailableStockUnavailable()
    • testHasCartBeenAmended

      public void testHasCartBeenAmended()
    • testBookingDueAmountWhenTotalAmountAndAmountPaidNull

      public void testBookingDueAmountWhenTotalAmountAndAmountPaidNull()
    • testBookingDueAmountWhenTotalAmountAndAmountPaidNotNull

      public void testBookingDueAmountWhenTotalAmountAndAmountPaidNotNull()
    • testEvaluateCart

      public void testEvaluateCart()
    • testIsCurrentCartValid

      public void testIsCurrentCartValid()
    • testGetTotalToPayPrice

      public void testGetTotalToPayPrice()
    • getTotalToPayPriceAfterChangeDates

      public void getTotalToPayPriceAfterChangeDates()
    • testGetPartialPaymentAmount

      public void testGetPartialPaymentAmount()
    • testGetBookingTotal

      public void testGetBookingTotal()
    • testGetCartTotal

      public void testGetCartTotal()
    • testGetPaymentOptions

      public void testGetPaymentOptions()
    • testGetPaymentOptionsOrderEntryType

      public void testGetPaymentOptionsOrderEntryType()
    • testIsValidPaymentOption

      public void testIsValidPaymentOption()
    • testGetNextBundleNumberToUse

      public void testGetNextBundleNumberToUse()
    • testUpdateBundleEntriesWithBundleNumber

      public void testUpdateBundleEntriesWithBundleNumber()
    • testValidateOriginDestinationRefNumbersInCart

      public void testValidateOriginDestinationRefNumbersInCart()
    • testAddBundleToCart

      public void testAddBundleToCart() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • testAddBundleToCartCommerceCartException

      public void testAddBundleToCartCommerceCartException() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • testAddBundleToCartPriceLevelNull

      public void testAddBundleToCartPriceLevelNull() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException