Class ShoppingCartServiceTest

    • Constructor Detail

      • ShoppingCartServiceTest

        public ShoppingCartServiceTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • cleanTestData

        @AfterEach
        public void cleanTestData()
      • testGetCartDTO

        @Test
        public void testGetCartDTO()
      • testAddCommerceItemExistingItem

        @Test
        public void testAddCommerceItemExistingItem()
      • testAddCommerceItemExistingItemQuantityExceed

        @Test
        public void testAddCommerceItemExistingItemQuantityExceed()
      • testAddCommerceItemNewItem

        @Test
        public void testAddCommerceItemNewItem()
      • testRemoveCommerceItem

        @Test
        public void testRemoveCommerceItem()
      • setupItem

        CommerceItem setupItem​(java.lang.String sellerId,
                               int itemIdx)
      • setupShoppingCart

        private ShoppingCart setupShoppingCart()