Skip to content

Merge pull request #22 from duongminhhieu/unit-test #77

Merge pull request #22 from duongminhhieu/unit-test

Merge pull request #22 from duongminhhieu/unit-test #77

GitHub Actions / Production-Unit-Test-Results succeeded Jun 6, 2024 in 0s

105 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest.xml 13s
target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest$HappyCase.xml 4✅ 227ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest$UnHappyCase.xml 7✅ 12s
target/surefire-reports/TEST-com.learning.yasminishop.controller.CartControllerTest.xml 5✅ 4s
target/surefire-reports/TEST-com.learning.yasminishop.controller.CategoryControllerTest.xml 7✅ 8s
target/surefire-reports/TEST-com.learning.yasminishop.controller.OrderControllerTest.xml 4✅ 3s
target/surefire-reports/TEST-com.learning.yasminishop.controller.PermissionControllerTest.xml 3✅ 847ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.ProductControllerTest.xml 6✅ 991ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.RoleControllerTest.xml 3✅ 675ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.UserControllerTest.xml 10✅ 849ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest.xml 927ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest$HappyCase.xml 4✅ 19ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest$UnHappyCase.xml 6✅ 903ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest.xml 950ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest$HappyCase.xml 5✅ 25ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest$UnhappyCase.xml 1✅ 920ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest.xml 925ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest$HappyCase.xml 7✅ 918ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest.xml 771ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest$HappyCase.xml 5✅ 23ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest$UnHappyCase.xml 3✅ 744ms
target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest.xml 903ms
target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest$HappyCase.xml 3✅ 893ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest.xml 718ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest$HappyCase.xml 7✅ 35ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest$UnhappyCase.xml 2✅ 678ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest.xml 653ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest$HappyCase.xml 2✅ 13ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest$UnHappyCase.xml 2✅ 635ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest.xml 672ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest$HappyCase.xml 3✅ 668ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest.xml 735ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest$HappyCase.xml 4✅ 138ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest$UnHappyCase.xml 2✅ 586ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.AuthenticationControllerTest 13s

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest$HappyCase.xml

4 tests were completed in 227ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.AuthenticationControllerTest$HappyCase 4✅ 227ms

✅ com.learning.yasminishop.controller.AuthenticationControllerTest$HappyCase

✅ refresh_validRequest_success
✅ register_validRequest_success
✅ logout_validRequest_success
✅ authenticate_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest$UnHappyCase.xml

7 tests were completed in 12s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.AuthenticationControllerTest$UnHappyCase 7✅ 12s

✅ com.learning.yasminishop.controller.AuthenticationControllerTest$UnHappyCase

✅ register_invalidEmail_fail
✅ logout_nullToken_fail
✅ authenticate_nullPassword_fail
✅ refresh_nullToken_fail
✅ authenticate_invalidPassword_fail
✅ authenticate_invalidEmail_fail
✅ authenticate_nullEmail_fail

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.CartControllerTest.xml

5 tests were completed in 4s with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.CartControllerTest 5✅ 4s

✅ com.learning.yasminishop.controller.CartControllerTest

✅ deleteCart_validRequest_success
✅ createCart_validRequest_success
✅ updateCart_validRequest_success
✅ getAllCarts_validRequest_success
✅ getCartItemsByIds_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.CategoryControllerTest.xml

7 tests were completed in 8s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.CategoryControllerTest 7✅ 8s

✅ com.learning.yasminishop.controller.CategoryControllerTest

✅ getCategoryById_validRequest_success
✅ getAllCategories_validRequest_success
✅ createCategory_validRequest_success
✅ deleteCategories_validRequest_success
✅ toggleAvailability_validRequest_success
✅ getCategoryBySlug_validRequest_success
✅ getAllCategoriesForAdmin_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.OrderControllerTest.xml

4 tests were completed in 3s with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.OrderControllerTest 4✅ 3s

✅ com.learning.yasminishop.controller.OrderControllerTest

✅ getOrderById_validRequest_success
✅ getOrderByIdForAdmin_validRequest_success
✅ getAllOrders_validRequest_success
✅ getAllOrdersForAdmin_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.PermissionControllerTest.xml

3 tests were completed in 847ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.PermissionControllerTest 3✅ 847ms

✅ com.learning.yasminishop.controller.PermissionControllerTest

✅ getAll_validRequest_success
✅ delete_validRequest_success
✅ create_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.ProductControllerTest.xml

6 tests were completed in 991ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.ProductControllerTest 6✅ 991ms

✅ com.learning.yasminishop.controller.ProductControllerTest

✅ getBySlug_validRequest_success
✅ updateProduct_validRequest_success
✅ deleteProduct_validRequest_success
✅ createProduct_validRequest_success
✅ getAllForAdmin_validRequest_success
✅ getById_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.RoleControllerTest.xml

3 tests were completed in 675ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.RoleControllerTest 3✅ 675ms

✅ com.learning.yasminishop.controller.RoleControllerTest

✅ deleteRole_validRequest_success
✅ createRole_validRequest_success
✅ getAll_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.controller.UserControllerTest.xml

10 tests were completed in 849ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.UserControllerTest 10✅ 849ms

✅ com.learning.yasminishop.controller.UserControllerTest

✅ getUser_validRequest_success
✅ getMyInfo_validRequest_success
✅ deleteUser_validRequest_success
✅ updateUser_emptyFirstName_fail
✅ updateUser_dobInvalid_fail
✅ updateUser_validRequest_success
✅ updateUser_passwordInvalid_fail
✅ updateUser_emptyRole_fail
✅ getAllUsers_validRequest_success
✅ getMyInfo_unauthenticatedRequest_failure

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.AuthenticationServiceTest 927ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest$HappyCase.xml

4 tests were completed in 19ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.AuthenticationServiceTest$HappyCase 4✅ 19ms

✅ com.learning.yasminishop.service.AuthenticationServiceTest$HappyCase

✅ refresh_validRequest_success
✅ register_validRequest_success
✅ logout_validRequest_success
✅ authenticate_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest$UnHappyCase.xml

6 tests were completed in 903ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.AuthenticationServiceTest$UnHappyCase 6✅ 903ms

✅ com.learning.yasminishop.service.AuthenticationServiceTest$UnHappyCase

✅ refresh_userNotFound_throwException
✅ refresh_invalidToken_throwException
✅ logout_invalidToken_throwException
✅ authenticate_userNotFound_throwException
✅ register_emailAlreadyExists_throwException
✅ authenticate_invalidPassword_throwException

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.CartServiceTest 950ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest$HappyCase.xml

5 tests were completed in 25ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.CartServiceTest$HappyCase 5✅ 25ms

✅ com.learning.yasminishop.service.CartServiceTest$HappyCase

✅ getAll_validRequest_success
✅ update_validRequest_success
✅ delete_validRequest_success
✅ getCartByIds_validRequest_success
✅ create_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest$UnhappyCase.xml

1 tests were completed in 920ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.CartServiceTest$UnhappyCase 1✅ 920ms

✅ com.learning.yasminishop.service.CartServiceTest$UnhappyCase

✅ create_productNotFound_throwException

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.CategoryServiceTest 925ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest$HappyCase.xml

7 tests were completed in 918ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.CategoryServiceTest$HappyCase 7✅ 918ms

✅ com.learning.yasminishop.service.CategoryServiceTest$HappyCase

✅ getBySlug_validRequest_success
✅ getAllCategories_validRequest_success
✅ update_validRequest_success
✅ createCategory_validRequest_success
✅ delete_validRequest_success
✅ toggleAvailability_validRequest_success
✅ getCategory_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.OrderServiceTest 771ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest$HappyCase.xml

5 tests were completed in 23ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.OrderServiceTest$HappyCase 5✅ 23ms

✅ com.learning.yasminishop.service.OrderServiceTest$HappyCase

✅ getAllOrderByUser_validRequest_success
✅ getOrderById_validRequest_success
✅ getOrderByIdForAdmin_validRequest_success
✅ updateOrderStatus_validRequest_success
✅ getAllOrders_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest$UnHappyCase.xml

3 tests were completed in 744ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.OrderServiceTest$UnHappyCase 3✅ 744ms

✅ com.learning.yasminishop.service.OrderServiceTest$UnHappyCase

✅ getOrderById_orderNotFound_throwException
✅ create_cartItemNotFound_throwException
✅ create_userNotFound_throwException

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.PermissionServiceTest 903ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest$HappyCase.xml

3 tests were completed in 893ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.PermissionServiceTest$HappyCase 3✅ 893ms

✅ com.learning.yasminishop.service.PermissionServiceTest$HappyCase

✅ deletePermission_validRequest_success
✅ createPermission_validRequest_success
✅ getAllPermissions_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.ProductServiceTest 718ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest$HappyCase.xml

7 tests were completed in 35ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.ProductServiceTest$HappyCase 7✅ 35ms

✅ com.learning.yasminishop.service.ProductServiceTest$HappyCase

✅ delete_allProductIdsExistAndNoneInOrderOrCart_success
✅ update_validRequest_success
✅ createProduct_validRequest_success
✅ getAllProductsForAdmin_validRequest_success
✅ toggleAvailability_validRequest_success
✅ getBySlug_validSlug_success
✅ getById_validId_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest$UnhappyCase.xml

2 tests were completed in 678ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.ProductServiceTest$UnhappyCase 2✅ 678ms

✅ com.learning.yasminishop.service.ProductServiceTest$UnhappyCase

✅ delete_productInOrderOrCart_throwsException
✅ delete_someProductIdsDoNotExist_throwsException

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.RatingServiceTest 653ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest$HappyCase.xml

2 tests were completed in 13ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.RatingServiceTest$HappyCase 2✅ 13ms

✅ com.learning.yasminishop.service.RatingServiceTest$HappyCase

✅ getRatings_validRequest_success
✅ create_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest$UnHappyCase.xml

2 tests were completed in 635ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.RatingServiceTest$UnHappyCase 2✅ 635ms

✅ com.learning.yasminishop.service.RatingServiceTest$UnHappyCase

✅ create_ratingAlreadyExists_exception
✅ create_productNotFound_throwException

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.RoleServiceTest 672ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest$HappyCase.xml

3 tests were completed in 668ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.RoleServiceTest$HappyCase 3✅ 668ms

✅ com.learning.yasminishop.service.RoleServiceTest$HappyCase

✅ getAll_validRequest_success
✅ delete_validRequest_success
✅ create_validRequest_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest.xml

No tests found

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.UserServiceTest 735ms

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest$HappyCase.xml

4 tests were completed in 138ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.UserServiceTest$HappyCase 4✅ 138ms

✅ com.learning.yasminishop.service.UserServiceTest$HappyCase

✅ getMyInfo_validRequest_success
✅ deleteUser_valid_success
✅ updateUser_validRequest_success
✅ getUserById_valid_success

✅ target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest$UnHappyCase.xml

2 tests were completed in 586ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.UserServiceTest$UnHappyCase 2✅ 586ms

✅ com.learning.yasminishop.service.UserServiceTest$UnHappyCase

✅ updateUser_notFoundUser_error
✅ getMyInfo_userNotFound_error