Class DefaultTravelCommerceCartServiceTest
java.lang.Object
de.hybris.platform.travelservices.order.impl.DefaultTravelCommerceCartServiceTest
JUnit test suite for
DefaultTravelCommerceCartService-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpopulatePropertiesMap(List<String> transportOfferingCodes, String travelRouteCode, List<TravellerModel> travellerList, int originDestinationRefNumber) voidsetUp()The setup method instantiates the class instance to be tested and also sets all the required attributes of the class.voidvoidvoidvoidvoidvoidThis method is used test adding bundle to cart.voidvoidThe method test adding/persisting properties like transport offering code to a cart entry.voidThe method test adding/persisting properties like transport offering code to a cart entry.voidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
thrown
public org.junit.rules.ExpectedException thrown
-
-
Constructor Details
-
DefaultTravelCommerceCartServiceTest
public DefaultTravelCommerceCartServiceTest()
-
-
Method Details
-
setUp
The setup method instantiates the class instance to be tested and also sets all the required attributes of the class.- Throws:
Exception
-
testAddToCartNewBundle
public void testAddToCartNewBundle() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException, de.hybris.platform.order.exceptions.CalculationExceptionThis method is used test adding bundle to cart.- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationExceptionde.hybris.platform.order.exceptions.CalculationException
-
testAddToCartRemovingExistingProducts
public void testAddToCartRemovingExistingProducts() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException, de.hybris.platform.order.exceptions.CalculationException- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationExceptionde.hybris.platform.order.exceptions.CalculationException
-
testAddTransportOfferingCodeToCartEntryForBundle
public void testAddTransportOfferingCodeToCartEntryForBundle() throws de.hybris.platform.commerceservices.order.CommerceCartModificationExceptionThe method test adding/persisting properties like transport offering code to a cart entry.- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
testAddTransportOfferingCodeToCartEntry
public void testAddTransportOfferingCodeToCartEntry() throws de.hybris.platform.commerceservices.order.CommerceCartModificationExceptionThe method test adding/persisting properties like transport offering code to a cart entry.- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
testAddPerLegBundleProductToCart
public void testAddPerLegBundleProductToCart() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
testGetOrderEntriesForCategory
public void testGetOrderEntriesForCategory() -
testAddSelectedAccommodationToCartForExistingSelectedAccommodation
public void testAddSelectedAccommodationToCartForExistingSelectedAccommodation() -
testAddSelectedAccommodationToCartForNonExistingSelectedAccommodation
public void testAddSelectedAccommodationToCartForNonExistingSelectedAccommodation() -
testRemoveSelectedAccommodationFromCart
public void testRemoveSelectedAccommodationFromCart() -
testRemoveSelectedAccommodationFromCartForNoExistingAccommodation
public void testRemoveSelectedAccommodationFromCartForNoExistingAccommodation() -
testRemoveSelectedAccommodationFromCartForNullSelectedAccommodationsInCart
public void testRemoveSelectedAccommodationFromCartForNullSelectedAccommodationsInCart() -
testRemoveCartEntriesForMinODRefNumberWithOutboundReferenceNumber
public void testRemoveCartEntriesForMinODRefNumberWithOutboundReferenceNumber() -
testRemoveCartEntriesForMinODRefNumberWithInboundReferenceNumber
public void testRemoveCartEntriesForMinODRefNumberWithInboundReferenceNumber() -
testRemoveCartEntriesForMinODRefNumberWithoutCart
public void testRemoveCartEntriesForMinODRefNumberWithoutCart() -
testRemoveCartEntriesForODRefNumberWithInboundReferenceNumber
public void testRemoveCartEntriesForODRefNumberWithInboundReferenceNumber() -
testRemoveCartEntriesForODRefNumberForSpecialArgumentScenarios
public void testRemoveCartEntriesForODRefNumberForSpecialArgumentScenarios() -
testAddAutoPickProductsToCart
public void testAddAutoPickProductsToCart() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
testAddPerLegBundleProductToCartWithSingleParameter
public void testAddPerLegBundleProductToCartWithSingleParameter() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
populatePropertiesMap
-