Skip to content

edit and delete customer #832

edit and delete customer

edit and delete customer #832

GitHub Actions / Customer-Service-Unit-Test-Results succeeded Nov 13, 2024 in 0s

51 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
customer/target/failsafe-reports/TEST-com.yas.customer.service.LocationServiceIT.xml 3✅ 27s
customer/target/failsafe-reports/TEST-com.yas.customer.service.UserAddressServiceIT.xml 12✅ 36s
customer/target/surefire-reports/TEST-com.yas.customer.controller.CustomerControllerTest.xml 7✅ 771ms
customer/target/surefire-reports/TEST-com.yas.customer.controller.UserAddressControllerTest.xml 5✅ 4s
customer/target/surefire-reports/TEST-com.yas.customer.listener.CustomAuditingEntityListenerTest.xml 4✅ 247ms
customer/target/surefire-reports/TEST-com.yas.customer.service.CustomerServiceTest.xml 15✅ 1s
customer/target/surefire-reports/TEST-com.yas.customer.service.LocationServiceTest.xml 3✅ 3s
customer/target/surefire-reports/TEST-com.yas.customer.utils.MessagesUtilsTest.xml 2✅ 3ms

✅ customer/target/failsafe-reports/TEST-com.yas.customer.service.LocationServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.customer.service.LocationServiceIT 3✅ 27s

✅ com.yas.customer.service.LocationServiceIT

✅ test_createAddress_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen
✅ test_getAddressesByIdList_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen
✅ test_getAddressById_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

✅ customer/target/failsafe-reports/TEST-com.yas.customer.service.UserAddressServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.customer.service.UserAddressServiceIT 12✅ 36s

✅ com.yas.customer.service.UserAddressServiceIT

✅ testCreateFirstAddress_whenNormalCase_createAddressSuccessWithActiveStatus
✅ testDeleteAddress_whenNormalCase_deleteSuccess
✅ testChooseDefaultAddress_whenNormalCase_chooseDefaultAddressSuccess
✅ testGetUserAddressList_whenUserIsNotAuthenticated_throwAccessDeniedException
✅ testGetAddressDefault_whenAddressDetailVmNotEmpty_returnActiveAddressVm
✅ testGetAddressDefault_whenUserIsNotAuthenticated_throwAccessDeniedException
✅ testGetAddressDefault_whenNotFoundUserAddress_throwNotFoundException
✅ testGetUserAddressList_whenUserAddressReturnEmpty_returnListIsEmpty
✅ testDeleteAddress_whenUserAddressIsNull_throwNotFoundException
✅ testGetUserAddressList_whenAddressDetailVmNotEmpty_returnActiveAddressVms
✅ testCreateAddress_whenNormalCase_createAddressSuccess
✅ testGetUserAddressList_whenAddressDetailVmReturnEmpty_returnListIsEmpty

✅ customer/target/surefire-reports/TEST-com.yas.customer.controller.CustomerControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.customer.controller.CustomerControllerTest 7✅ 771ms

✅ com.yas.customer.controller.CustomerControllerTest

✅ testCreateGuestUser_whenNormalCase_responseGuestUserVm
✅ testGetCustomers_whenNormalCase_responseCustomerListVm
✅ testGetCustomerByEmail_whenNormalCase_responseCustomerAdminVm
✅ testUpdateProfile_whenNormalCase_methodSuccess
✅ testGetCustomerProfile_whenNormalCase_responseCustomerVm
✅ testDeleteCustomer_whenNormalCase_methodSuccess
✅ testCreateCustomer_whenNormalCase_methodSuccess

✅ customer/target/surefire-reports/TEST-com.yas.customer.controller.UserAddressControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.customer.controller.UserAddressControllerTest 5✅ 4s

✅ com.yas.customer.controller.UserAddressControllerTest

✅ testChooseDefaultAddress_whenNormalCase_responseOk
✅ testGetUserAddresses_whenNormalCase_responseActiveAddressVms
✅ testCreateAddress_whenNormalCase_responseUserAddressVm
✅ testGetDefaultAddress_whenNormalCase_responseAddressDetailVm
✅ testDeleteAddress_whenNormalCase_responseOk

✅ customer/target/surefire-reports/TEST-com.yas.customer.listener.CustomAuditingEntityListenerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.customer.listener.CustomAuditingEntityListenerTest 4✅ 247ms

✅ com.yas.customer.listener.CustomAuditingEntityListenerTest

✅ testTouchForUpdate_henLastModifiedByIsNull_markModified
✅ testTouchForUpdate_whenLastModifiedByIsNotNull_markModified
✅ testTouchForCreate_whenCreatedByIsNull_createSuccess
✅ testTouchForCreate_whenCreatedByIsNotNull_setLastModifiedBy

✅ customer/target/surefire-reports/TEST-com.yas.customer.service.CustomerServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.customer.service.CustomerServiceTest 15✅ 1s

✅ com.yas.customer.service.CustomerServiceTest

✅ testUpdateCustomer_isUserNotFound_ThrowNotFoundException
✅ testGetCustomers_isUserRepresentationEmpty_returnCustomerListVm
✅ testGetCustomerByEmail_isInValidEmail_throwWrongEmailFormatException
✅ testGetCustomerByEmail_isAbnormalCase_throwForbiddenException
✅ testGetCustomerByEmail_searchResultIsEmpty_throwNotFoundException
✅ testCreateUser_whenUsernameAlreadyExisted_thenThrowDuplicateException
✅ testDeleteCustomer_isNormalCase_methodSuccess
✅ testGetCustomerProfile_isAbnormalCase_throwForbiddenException
✅ testGetCustomerByEmail_isNormalCase_returnCustomerAdminVm
✅ testCreateUser_isNormalCase_returnCustomerPostVm
✅ testGetCustomerProfile_isNormalCase_ReturnCustomerVm
✅ testUpdateCustomer_isNormalCase_methodSuccess
✅ testCreateGuestUser_isNormalCase_returnGuestUserVm
✅ testGetCustomers_hasError_throwForbiddenException
✅ testGetCustomers_existsUserRepresentation_returnCustomerListVm

✅ customer/target/surefire-reports/TEST-com.yas.customer.service.LocationServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.customer.service.LocationServiceTest 3✅ 3s

✅ com.yas.customer.service.LocationServiceTest

✅ testCreateAddress
✅ testGetAddressesByIdList
✅ testGetAddressById

✅ customer/target/surefire-reports/TEST-com.yas.customer.utils.MessagesUtilsTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.customer.utils.MessagesUtilsTest 2✅ 3ms

✅ com.yas.customer.utils.MessagesUtilsTest

✅ testGetMessageWithValidCode
✅ testGetMessageWithInvalidCode