Skip to content

#882 create a shared project #342

#882 create a shared project

#882 create a shared project #342

GitHub Actions / Location-Service-Unit-Test-Results succeeded Sep 19, 2024 in 1s

81 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
location/target/failsafe-reports/TEST-com.yas.location.integration.controller.AddressControllerIT.xml 5✅ 1s
location/target/failsafe-reports/TEST-com.yas.location.integration.controller.CountryControllerIT.xml 8✅ 2s
location/target/failsafe-reports/TEST-com.yas.location.integration.controller.DistrictControllerIT.xml 3✅ 57s
location/target/failsafe-reports/TEST-com.yas.location.integration.controller.StateOrProvinceControllerIT.xml 10✅ 2s
location/target/surefire-reports/TEST-com.yas.location.controller.AddressControllerTest.xml 6✅ 2s
location/target/surefire-reports/TEST-com.yas.location.controller.CountryControllerTest.xml 6✅ 7s
location/target/surefire-reports/TEST-com.yas.location.controller.StateOrProvinceControllerTest.xml 6✅ 986ms
location/target/surefire-reports/TEST-com.yas.location.service.AddressServiceTest.xml 9✅ 292ms
location/target/surefire-reports/TEST-com.yas.location.service.CountryServiceTest.xml 13✅ 156ms
location/target/surefire-reports/TEST-com.yas.location.service.DistrictServiceTest.xml 1✅ 29ms
location/target/surefire-reports/TEST-com.yas.location.service.StateOrProvinceServiceTest.xml 14✅ 10s

✅ location/target/failsafe-reports/TEST-com.yas.location.integration.controller.AddressControllerIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.integration.controller.AddressControllerIT 5✅ 1s

✅ com.yas.location.integration.controller.AddressControllerIT

✅ test_getAddress_shouldReturnData_ifProvideValidId
✅ test_getAllAddresses_shouldReturnData
✅ test_deleteAddress_shouldOk_ifProvideValidAccessTokenAndValidId
✅ test_deleteAddress_shouldReturn404_ifProvideAccessTokenAndInvalidId
✅ test_deleteAddress_shouldReturn403_ifProvideInvalidAccessToken

✅ location/target/failsafe-reports/TEST-com.yas.location.integration.controller.CountryControllerIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.integration.controller.CountryControllerIT 8✅ 2s

✅ com.yas.location.integration.controller.CountryControllerIT

✅ test_getCountries_shouldReturnData
✅ test_getCountry_shouldReturn404_ifProvideValidAccessTokenButCountryNotFound
✅ test_deleteCountry_shouldDelete_ifProvideValidAccessTokenAndValidId
✅ test_getPaginateCountry_shouldReturnData_IfProvideValidAccessToken
✅ test_deleteCountry_shouldReturn403_ifProvideInvalidAccessToken
✅ test_getAllCountries_shouldReturnData_ifProvideValidAccessToken
✅ test_deleteCountry_shouldReturn404_ifProvideValidAccessTokenAndInvalidId
✅ test_getCountry_shouldReturnData_ifProvideValidAccessTokenAndValidId

✅ location/target/failsafe-reports/TEST-com.yas.location.integration.controller.DistrictControllerIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.integration.controller.DistrictControllerIT 3✅ 57s

✅ com.yas.location.integration.controller.DistrictControllerIT

✅ test_getDistrict_shouldReturn401_ifProvideInvalidAccessToken
✅ test_getDistrict_shouldReturnData_ifProvideValidAccessTokenAndValidStateId
✅ test_getDistrict_shouldReturnData_ifProvideValidStateProvinceId

✅ location/target/failsafe-reports/TEST-com.yas.location.integration.controller.StateOrProvinceControllerIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.integration.controller.StateOrProvinceControllerIT 10✅ 2s

✅ com.yas.location.integration.controller.StateOrProvinceControllerIT

✅ test_getStateWithCountryName_shouldReturn401_ifProvideInvalidAccessToken
✅ test_getStateWithCountryName_shouldReturnData_ifProvideValidAccessAndValidId
✅ test_deleteState_shouldReturn403_ifProvideInvalidAccessToken
✅ test_getAllByCountryId_shouldReturnData_ifProvideValidAccessTokenAndValidId
✅ test_getAllPagination_shouldReturnData_ifProvideValidAccessTokenAndValidId
✅ test_deleteState_shouldDelete_ifProvideValidAccessAndValidId
✅ test_getState_shouldReturnData_ifProvideValidId
✅ test_getState_shouldReturn401_ifProvideInvalidAccessToken
✅ test_getAllCountryId_shouldReturn401_ifProvideInvalidAccessToken
✅ test_getState_shouldReturnData_ifProvideValidAccessTokenAndValidId

✅ location/target/surefire-reports/TEST-com.yas.location.controller.AddressControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.controller.AddressControllerTest 6✅ 2s

✅ com.yas.location.controller.AddressControllerTest

✅ testUpdateAddress_whenRequestIsValid_thenReturnOk
✅ testCreateAddress_whenDistrictIsNull_thenReturnBadRequest
✅ testUpdateAddress_whenPhoneIsOverMaxLength_thenReturnBadRequest
✅ testUpdateAddress_whenDistrictIsNull_thenReturnBadRequest
✅ testCreateAddress_whenPhoneIsOverMaxLength_thenReturnBadRequest
✅ testCreateAddress_whenRequestIsValid_thenReturnOk

✅ location/target/surefire-reports/TEST-com.yas.location.controller.CountryControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.controller.CountryControllerTest 6✅ 7s

✅ com.yas.location.controller.CountryControllerTest

✅ testUpdateCountry_whenRequestIsValid_thenReturnOk
✅ testCreateCountry_whenCodeIsOverMaxLength_thenReturnBadRequest
✅ testCreateCountry_whenIdIsBlank_thenReturnBadRequest
✅ testCreateCountry_whenRequestIsValid_thenReturnOk
✅ testUpdateCountry_whenCodeIsOverMaxLength_thenReturnBadRequest
✅ testUpdateCountry_whenIdIsBlank_thenReturnBadRequest

✅ location/target/surefire-reports/TEST-com.yas.location.controller.StateOrProvinceControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.controller.StateOrProvinceControllerTest 6✅ 986ms

✅ com.yas.location.controller.StateOrProvinceControllerTest

✅ testCreateStateOrProvince_whenNameIsBlank_thenReturnBadRequest
✅ testCreateStateOrProvince_whenRequestIsValid_thenReturnOk
✅ testCreateStateOrProvince_whenCodeIsOverMaxLength_thenReturnBadRequest
✅ testUpdateStateOrProvince_whenRequestIsValid_thenReturnOk
✅ testUpdateStateOrProvince_whenNameIsBlank_thenReturnBadRequest
✅ testUpdateStateOrProvince_whenCodeIsOverMaxLength_thenReturnBadRequest

✅ location/target/surefire-reports/TEST-com.yas.location.service.AddressServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.service.AddressServiceTest 9✅ 292ms

✅ com.yas.location.service.AddressServiceTest

✅ createAddress_inValidData_ThrowsCountryNotFoundException
✅ updateAddress_inValidAddressId_ThrowsAddressNotFoundException
✅ deleteAddress_givenAddressIdValid_thenSuccess
✅ getAddress_NotExistInDatabase_ThrowsNotFoundException
✅ getAddress_ExistInDatabase_Success
✅ getAllAddresses_Success
✅ updateAddress_validData_Success
✅ createAddress_validDate_Success
✅ deleteAddress_givenAddressIdInValid_ThrowsAddressNotFoundException

✅ location/target/surefire-reports/TEST-com.yas.location.service.CountryServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.service.CountryServiceTest 13✅ 156ms

✅ com.yas.location.service.CountryServiceTest

✅ updateCountry_ValidData_Success
✅ getCountry_ExistInDatabase_Success
✅ createCountry_WithCodeExisted_ThrowsCodeAlreadyExistedException
✅ createCountry_WithNameExisted_ThrowsNameAlreadyExistedException
✅ updateCountry_WithIdNotValid_ThrowsCountryNotFoundException
✅ updateCountry_WithCodeExisted_ThrowsCodeAlreadyExistedException
✅ deleteCountry_WithValidId_Success
✅ updateCountry_WithNameExisted_ThrowsNameAlreadyExistedException
✅ deleteCountry_WithInValidId_ThrowsCountryNotFoundException
✅ getAllCountries_Success
✅ getCountry_NotInDatabase_ThrowsCountryNotFoundException
✅ createCountry_ValidData_Success
✅ getCountries_Pagination_Success

✅ location/target/surefire-reports/TEST-com.yas.location.service.DistrictServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.service.DistrictServiceTest 1✅ 29ms

✅ com.yas.location.service.DistrictServiceTest

✅ getDistrict_WithValidId_Success

✅ location/target/surefire-reports/TEST-com.yas.location.service.StateOrProvinceServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.location.service.StateOrProvinceServiceTest 14✅ 10s

✅ com.yas.location.service.StateOrProvinceServiceTest

✅ updateStateOrProvince_WithNameExisted_ThrowsNameAlreadyExistedException
✅ getStateOrProvinceAndCountryName_Success
✅ deleteStateOrProvince_WithExisted_Success
✅ getAllStateOrProvinceByCountryId_Success
✅ createStateOrProvince_ValidData_Success
✅ getStateOrProvincePagination_Success
✅ updateStateOrProvince_WithInValidId_ThrowsStateOrProvinceNotFound
✅ getStateOrProvince_WithInValidId_ThrowsStateOrProvinceNotFoundException
✅ createStateOrProvince_WithNameExisted_ThrowsNameAlreadyExistException
✅ getStateOrProvince_WithValidId_Success
✅ getAllStateOrProvinces_Success
✅ updateStateOrProvince_WithValidData_Success
✅ createStateOrProvince_WithCountryNotExist_ThrowsCountryNotFoundException
✅ deleteStateOrProvince_WithInvalidId_ThrowsStateOrProvinceNotFoundException