Skip to content

refactor: refactor something #79

refactor: refactor something

refactor: refactor something #79

GitHub Actions / Production-Unit-Test-Results succeeded Jun 8, 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 13s
target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest$HappyCase.xml 4✅ 130ms
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✅ 759ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.ProductControllerTest.xml 6✅ 1s
target/surefire-reports/TEST-com.learning.yasminishop.controller.RoleControllerTest.xml 3✅ 691ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.UserControllerTest.xml 10✅ 868ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest.xml 869ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest$HappyCase.xml 4✅ 17ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest$UnHappyCase.xml 6✅ 848ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest.xml 914ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest$HappyCase.xml 5✅ 24ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CartServiceTest$UnhappyCase.xml 1✅ 885ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest.xml 930ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest$HappyCase.xml 7✅ 926ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest.xml 695ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest$HappyCase.xml 5✅ 26ms
target/surefire-reports/TEST-com.learning.yasminishop.service.OrderServiceTest$UnHappyCase.xml 3✅ 665ms
target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest.xml 872ms
target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest$HappyCase.xml 3✅ 861ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest.xml 790ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest$HappyCase.xml 7✅ 49ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest$UnhappyCase.xml 2✅ 736ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest.xml 630ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest$HappyCase.xml 2✅ 12ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RatingServiceTest$UnHappyCase.xml 2✅ 614ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest.xml 628ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest$HappyCase.xml 3✅ 624ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest.xml 699ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest$HappyCase.xml 4✅ 125ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest$UnHappyCase.xml 2✅ 555ms

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

✅ updateUser_notFoundUser_error
✅ getMyInfo_userNotFound_error