Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#829 - Config common library and add test for product, cart,... for checking #1057

Merged
merged 9 commits into from
Sep 24, 2024

refactor product IT with media IT and cart test

1904513
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

#829 - Config common library and add test for product, cart,... for checking #1057

refactor product IT with media IT and cart test
1904513
Select commit
Loading
Failed to load commit list.
GitHub Actions / Cart-Service-Unit-Test-Results succeeded Sep 24, 2024 in 1s

34 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
cart/target/failsafe-reports/TEST-com.yas.cart.service.CartServiceIT.xml 16✅ 34s
cart/target/failsafe-reports/TEST-com.yas.cart.service.ProductServiceIT.xml 1✅ 29s
cart/target/surefire-reports/TEST-com.yas.cart.controller.CartControllerTest.xml 12✅ 7s
cart/target/surefire-reports/TEST-com.yas.cart.service.CartServiceTest.xml 4✅ 409ms
cart/target/surefire-reports/TEST-com.yas.cart.service.ProductServiceTest.xml 1✅ 361ms

✅ 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