Class CartServiceTest

    • Constructor Detail

      • CartServiceTest

        public CartServiceTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetSessionCart

        public void testGetSessionCart()
      • testGetSessionCartInLocalView

        public void testGetSessionCartInLocalView()
      • testGetSessionCartWhenJaloSessionUpdates

        public void testGetSessionCartWhenJaloSessionUpdates()
      • testRemoveSessionCart

        public void testRemoveSessionCart()
      • testSetSessionCart

        public void testSetSessionCart()
      • 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()