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 / Development-Unit-Test-Results succeeded Jun 6, 2024 in 1s

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 14s
target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest$HappyCase.xml 4✅ 146ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest$UnHappyCase.xml 7✅ 13s
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✅ 835ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.ProductControllerTest.xml 6✅ 1s
target/surefire-reports/TEST-com.learning.yasminishop.controller.RoleControllerTest.xml 3✅ 886ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.UserControllerTest.xml 10✅ 923ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest.xml 966ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest$HappyCase.xml 4✅ 22ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest$UnHappyCase.xml 6✅ 939ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest.xml 941ms
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✅ 911ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest.xml 774ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest$HappyCase.xml 7✅ 769ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest.xml 820ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest$HappyCase.xml 5✅ 39ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest$UnHappyCase.xml 3✅ 775ms
target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest.xml 1s
target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest$HappyCase.xml 3✅ 1s
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest.xml 842ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest$HappyCase.xml 7✅ 48ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest$UnhappyCase.xml 2✅ 783ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest.xml 736ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest$HappyCase.xml 2✅ 14ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest$UnHappyCase.xml 2✅ 717ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest.xml 759ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest$HappyCase.xml 3✅ 755ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest.xml 830ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest$HappyCase.xml 4✅ 143ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest$UnHappyCase.xml 2✅ 681ms

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

No tests found

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

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

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

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

✅ 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 13s with 7 passed, 0 failed and 0 skipped.

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

✅ 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 835ms with 3 passed, 0 failed and 0 skipped.

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

✅ 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 1s with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.controller.ProductControllerTest 6✅ 1s

✅ 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 886ms with 3 passed, 0 failed and 0 skipped.

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

✅ 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 923ms with 10 passed, 0 failed and 0 skipped.

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

✅ 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 966ms

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

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

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

✅ 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 939ms with 6 passed, 0 failed and 0 skipped.

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

✅ 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 941ms

✅ 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 911ms with 1 passed, 0 failed and 0 skipped.

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

✅ 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 774ms

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

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

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

✅ 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 820ms

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

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

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

✅ 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 775ms with 3 passed, 0 failed and 0 skipped.

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

✅ 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 1s

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

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

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

✅ 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 842ms

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

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

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

✅ 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 783ms with 2 passed, 0 failed and 0 skipped.

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

✅ 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 736ms

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

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

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

✅ 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 717ms with 2 passed, 0 failed and 0 skipped.

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

✅ 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 759ms

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

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

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

✅ 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 830ms

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

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

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

✅ 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 681ms with 2 passed, 0 failed and 0 skipped.

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

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

✅ updateUser_notFoundUser_error
✅ getMyInfo_userNotFound_error