Skip to content

#882 create a shared project #311

#882 create a shared project

#882 create a shared project #311

GitHub Actions / Rating-Service-Unit-Test-Results succeeded Sep 16, 2024 in 0s

29 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
rating/target/failsafe-reports/TEST-com.yas.rating.controller.RatingControllerIT.xml 12✅ 58s
rating/target/surefire-reports/TEST-com.yas.rating.controller.RatingControllerTest.xml 6✅ 7s
rating/target/surefire-reports/TEST-com.yas.rating.RatingApplicationTest.xml 1✅ 9s
rating/target/surefire-reports/TEST-com.yas.rating.service.RatingServiceTest.xml 10✅ 3s

✅ rating/target/failsafe-reports/TEST-com.yas.rating.controller.RatingControllerIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.rating.controller.RatingControllerIT 12✅ 58s

✅ com.yas.rating.controller.RatingControllerIT

✅ TestCreateRating_WhenValidRequest_ShouldSuccess
✅ testStorefrontGetRatingList_ShouldReturnList
✅ TestGetAverageStarOfProduct_ShouldReturnSuccess
✅ testDeleteRating_whenInvalidId_shouldReturnNotFoundException
✅ TestCreateRating_WhenInvalidUser_ShouldThrowNotFoundException
✅ getRatingListWithFilter_whenProvidedAccessToken_shouldReturnData
✅ getRatingListWithFilter_whenNotProvidedAccessToken_shouldThrowNotAuthenticatedException
✅ testDeleteRating_whenValidId_shouldReturn200
✅ testStorefrontGetRatingList_whenNotProvideAccessToken_shouldThrowNotAuthenticatedException
✅ testDeleteRating_whenNotProvidedAccessToken_shouldThrowNotAuthenticatedException
✅ TestCreateRating_WhenRatingExisted_ShouldThrowException
✅ testGetAverageStarOfProduct_whenProductNotExisted_shouldReturnZero

✅ rating/target/surefire-reports/TEST-com.yas.rating.controller.RatingControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.rating.controller.RatingControllerTest 6✅ 7s

✅ com.yas.rating.controller.RatingControllerTest

✅ testStorefrontGetRatingList_ShouldReturnList
✅ TestGetAverageStarOfProduct_ShouldReturnSuccess
✅ TestCreateRating_WhenValid_ShouldSuccess
✅ testGetRatingListWithFilter
✅ testDeleteRating_WhenValidId_ShouldReturn200
✅ testDeleteRating_WhenInvalidId_ShouldReturn404

✅ rating/target/surefire-reports/TEST-com.yas.rating.RatingApplicationTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.rating.RatingApplicationTest 1✅ 9s

✅ com.yas.rating.RatingApplicationTest

✅ contextLoads

✅ rating/target/surefire-reports/TEST-com.yas.rating.service.RatingServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.rating.service.RatingServiceTest 10✅ 3s

✅ com.yas.rating.service.RatingServiceTest

✅ createRating_InvalidAuthorization_ShouldThrowAccessDeniedException
✅ calculateAverageStar_ValidProductId_ShouldSuccess
✅ createRating_ValidRatingData_ShouldSuccess
✅ createRating_ExistedRating_ShouldThrowResourceExistedException
✅ calculateAverageStar_InvalidProductId_ShouldReturnZero
✅ getRatingListWithFilter_ValidFilterData_ShouldReturnSuccess
✅ deleteRating_ValidRatingId_ShouldSuccess
✅ deleteRating_InvalidRatingId_ShouldThrowNotFoundException
✅ getRatingList_ValidProductId_ShouldSuccess
✅ getRatingList_NotExistedProductId_ShouldReturnEmptyList