Class CartServiceTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class CartServiceTest extends ServicelayerTransactionalTest
  • Constructor Details

    • CartServiceTest

      public CartServiceTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testAddToCart

      public void testAddToCart() throws InvalidCartException
      Throws:
      InvalidCartException
    • testGetSessionCart

      public void testGetSessionCart()
    • testGetSessionCartInLocalView

      public void testGetSessionCartInLocalView()
    • testGetSessionCartWhenJaloSessionUpdates

      public void testGetSessionCartWhenJaloSessionUpdates()
    • testRemoveSessionCart

      public void testRemoveSessionCart()
    • testSetSessionCart

      public void testSetSessionCart()
    • testChangeQuantity

      public void testChangeQuantity() throws InvalidCartException
      Throws:
      InvalidCartException
    • testSetCartEntryQuantityToZero

      public void testSetCartEntryQuantityToZero() throws InvalidCartException
      Throws:
      InvalidCartException
    • testChangeSomeQuantitiesInCartOldStyle

      public void testChangeSomeQuantitiesInCartOldStyle() throws InvalidCartException
      Throws:
      InvalidCartException
    • testChangeSomeQuantitiesInCart

      public void testChangeSomeQuantitiesInCart() throws InvalidCartException, CalculationException
      Throws:
      InvalidCartException
      CalculationException
    • testCartAfterChangeCurrency

      public void testCartAfterChangeCurrency() throws InvalidCartException
      Test checks currency information in cart after currency change. When currency has been changed cart is recalculated.
      Throws:
      InvalidCartException
    • testRefreshCartAfterChangeCurrency

      public void testRefreshCartAfterChangeCurrency() throws InvalidCartException
      Test adds into cart one product and change currency of environment. Currency is changed to first currency available in system, different than currennt currency.
      After currency change cart id loaded again and test checks if cart and cart items have correct currency settings.
      Throws:
      InvalidCartException
    • testAppendToCart

      public void testAppendToCart()
      Tests appending cloned cart entries of source cart to the target cart
    • testCustomCartTypeCartService

      public void testCustomCartTypeCartService()
    • testCustomCartTypeCartFactory

      public void testCustomCartTypeCartFactory()
    • testChangeCurrentCartUser

      public void testChangeCurrentCartUser()
    • testCreateCartFromQuote

      public void testCreateCartFromQuote()