#829 - Config common library and add test for product, cart,... for c… #243
GitHub Actions / Cart-Service-Unit-Test-Results
succeeded
Sep 24, 2024 in 0s
34 passed, 0 failed and 0 skipped
✅ cart/target/failsafe-reports/TEST-com.yas.cart.service.CartServiceIT.xml
16 tests were completed in 34s with 16 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.service.CartServiceIT | 16✅ | 34s |
✅ com.yas.cart.service.CartServiceIT
✅ getLastCart_ExistingCarts_ReturnsLatestCart
✅ getCarts_ExistInDatabase_Success
✅ getCartDetailByCustomerId_ExistingCustomer_Success
✅ removeCartItemListByProductIdList_NotMatchProductId_ThrowNotFoundException
✅ updateCartItems_QuantityZero_DeletesItem
✅ removeCartItemListByProductIdList_NoCartItems_ThrowBadRequestException
✅ addToCart_ProductsExist_AddsItemsToNewCart
✅ countNumberItemInCart_EmptyCart_ReturnsZero
✅ getLastCart_NoCarts_ReturnsEmptyCart
✅ addToCart_SomeProductsDoNotExist_ThrowsNotFoundException
✅ countNumberItemInCart_NoCart_ReturnsZero
✅ addToCart_ProductsExist_AddsItemsToExistingCart
✅ removeCartItemListByProductIdList_SomeProductsExist_RemovesThem
✅ countNumberItemInCart_NonEmptyCart_ReturnsCorrectCount
✅ removeCartItemByProductId_ProductExists_RemovesItem
✅ updateCartItems_ProductExists_UpdatesQuantity
✅ cart/target/failsafe-reports/TEST-com.yas.cart.service.ProductServiceIT.xml
1 tests were completed in 28s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.service.ProductServiceIT | 1✅ | 28s |
✅ com.yas.cart.service.ProductServiceIT
✅ test_getProducts_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen
✅ cart/target/surefire-reports/TEST-com.yas.cart.controller.CartControllerTest.xml
12 tests were completed in 8s with 12 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.controller.CartControllerTest | 12✅ | 8s |
✅ com.yas.cart.controller.CartControllerTest
✅ testRemoveCartItemSuccess
✅ testListCartDetailByCustomerId
✅ testCreateCartNotFound
✅ testGetNumberItemInCartWhenNoItems
✅ testCreateCartSuccess
✅ testListCarts
✅ testRemoveCartItemListSuccess
✅ testGetNumberItemInCartSuccess
✅ testCreateCartBadRequest
✅ testGetLastCartWithNoPrincipal
✅ testUpdateCartSuccess
✅ testGetLastCartWithPrincipal
✅ cart/target/surefire-reports/TEST-com.yas.cart.service.CartServiceTest.xml
4 tests were completed in 455ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.service.CartServiceTest | 4✅ | 455ms |
✅ com.yas.cart.service.CartServiceTest
✅ testCountNumberItemInCart_whenEmptyCart_thenReturnZero
✅ testGetAllCarts_thenReturnCartsList
✅ testUpdateCartItems_whenCartItemNotExisted_thenThrowBadRequestException
✅ testAddToCart_whenProductNotFound_thenThrowNotFoundException
✅ cart/target/surefire-reports/TEST-com.yas.cart.service.ProductServiceTest.xml
1 tests were completed in 396ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.service.ProductServiceTest | 1✅ | 396ms |
✅ com.yas.cart.service.ProductServiceTest
✅ getProducts_NormalCase_ReturnProductThumbnailVms
Loading