#829 - Config common library and add test for product, cart,... for checking #1057
GitHub Actions / Cart-Service-Unit-Test-Results
succeeded
Sep 24, 2024 in 1s
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 29s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.service.ProductServiceIT | 1✅ | 29s |
✅ 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 7s with 12 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.controller.CartControllerTest | 12✅ | 7s |
✅ 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 409ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.service.CartServiceTest | 4✅ | 409ms |
✅ 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 361ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.cart.service.ProductServiceTest | 1✅ | 361ms |
✅ com.yas.cart.service.ProductServiceTest
✅ getProducts_NormalCase_ReturnProductThumbnailVms
Loading