Skip to content

write all unit-test #70

write all unit-test

write all unit-test #70

GitHub Actions / Development-Unit-Test-Results succeeded Jun 5, 2024 in 0s

83 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
target/surefire-reports/TEST-com.learning.yasminishop.controller.AuthenticationControllerTest.xml 11✅ 13s
target/surefire-reports/TEST-com.learning.yasminishop.controller.CartControllerTest.xml 5✅ 4s
target/surefire-reports/TEST-com.learning.yasminishop.controller.CategoryControllerTest.xml 7✅ 9s
target/surefire-reports/TEST-com.learning.yasminishop.controller.PermissionControllerTest.xml 3✅ 761ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.ProductControllerTest.xml 6✅ 1s
target/surefire-reports/TEST-com.learning.yasminishop.controller.RoleControllerTest.xml 3✅ 751ms
target/surefire-reports/TEST-com.learning.yasminishop.controller.UserControllerTest.xml 10✅ 805ms
target/surefire-reports/TEST-com.learning.yasminishop.service.AuthenticationServiceTest.xml 10✅ 910ms
target/surefire-reports/TEST-com.learning.yasminishop.service.CategoryServiceTest.xml 7✅ 834ms
target/surefire-reports/TEST-com.learning.yasminishop.service.PermissionServiceTest.xml 3✅ 945ms
target/surefire-reports/TEST-com.learning.yasminishop.service.ProductServiceTest.xml 9✅ 982ms
target/surefire-reports/TEST-com.learning.yasminishop.service.RoleServiceTest.xml 3✅ 879ms
target/surefire-reports/TEST-com.learning.yasminishop.service.UserServiceTest.xml 6✅ 906ms

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

11 tests were completed in 13s with 11 passed, 0 failed and 0 skipped.

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

✅ com.learning.yasminishop.controller.AuthenticationControllerTest

✅ register_invalidEmail_fail
✅ logout_nullToken_fail
✅ authenticate_nullPassword_fail
✅ refresh_validRequest_success
✅ register_validRequest_success
✅ refresh_nullToken_fail
✅ authenticate_invalidPassword_fail
✅ authenticate_invalidEmail_fail
✅ logout_validRequest_success
✅ authenticate_nullEmail_fail
✅ authenticate_validRequest_success

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

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

✅ 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.PermissionControllerTest.xml

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

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

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

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

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

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

✅ 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

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

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.AuthenticationServiceTest 10✅ 910ms

✅ com.learning.yasminishop.service.AuthenticationServiceTest

✅ refresh_userNotFound_throwException
✅ refresh_invalidToken_throwException
✅ logout_invalidToken_throwException
✅ refresh_validRequest_success
✅ register_validRequest_success
✅ authenticate_userNotFound_throwException
✅ logout_validRequest_success
✅ register_emailAlreadyExists_throwException
✅ authenticate_invalidPassword_throwException
✅ authenticate_validRequest_success

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

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

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.CategoryServiceTest 7✅ 834ms

✅ com.learning.yasminishop.service.CategoryServiceTest

✅ 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.PermissionServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.PermissionServiceTest 3✅ 945ms

✅ com.learning.yasminishop.service.PermissionServiceTest

✅ deletePermission_validRequest_success
✅ createPermission_validRequest_success
✅ getAllPermissions_validRequest_success

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

9 tests were completed in 982ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.ProductServiceTest 9✅ 982ms

✅ com.learning.yasminishop.service.ProductServiceTest

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

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

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

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.RoleServiceTest 3✅ 879ms

✅ com.learning.yasminishop.service.RoleServiceTest

✅ getAll_validRequest_success
✅ delete_validRequest_success
✅ create_validRequest_success

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

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

Test suite Passed Failed Skipped Time
com.learning.yasminishop.service.UserServiceTest 6✅ 906ms

✅ com.learning.yasminishop.service.UserServiceTest

✅ getMyInfo_validRequest_success
✅ updateUser_notFoundUser_error
✅ deleteUser_valid_success
✅ getMyInfo_userNotFound_error
✅ updateUser_validRequest_success
✅ getUserById_valid_success