LauroSilveira has started workflow #99
GitHub Actions / Test Reporter Summary
failed
Dec 5, 2023 in 1s
Test Reporter Summary ❌
❌ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.VideoControllerTest.xml
5 tests were completed in 5s with 4 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.alura.aluraflixapi.controller.VideoControllerTest | 4✅ | 1❌ | 5s |
❌ com.alura.aluraflixapi.controller.VideoControllerTest
✅ get_video_by_id
✅ delete_video_by_id_test
❌ get_all_videos_test
java.lang.AssertionError: Range for response status value 500 expected:<SUCCESSFUL> but was:<SERVER_ERROR>
✅ save_a_new_video_test
✅ update_video_by_id_test
✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml
2 tests were completed in 7s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest | 2✅ | 7s |
✅ com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest
✅ findVideoByTitleTest
✅ findVideosByCategoriesTest
✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest.xml
5 tests were completed in 1s with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest | 5✅ | 1s |
✅ com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest
✅ should_return_all_categories_in_database
✅ should_delete_a_category_test
✅ should_findCategory_by_id_test
✅ should_return_a_category_searching_by_video_test
✅ should_create_a_new_category_test
Annotations
github-actions / Test Reporter Summary
com.alura.aluraflixapi.controller.VideoControllerTest ► get_all_videos_test
Failed test found in:
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.VideoControllerTest.xml
Error:
java.lang.AssertionError: Range for response status value 500 expected:<SUCCESSFUL> but was:<SERVER_ERROR>
Raw output
java.lang.AssertionError: Range for response status value 500 expected:<SUCCESSFUL> but was:<SERVER_ERROR>
at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:59)
at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:122)
at org.springframework.test.web.servlet.result.StatusResultMatchers.lambda$is2xxSuccessful$3(StatusResultMatchers.java:79)
at org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:214)
at com.alura.aluraflixapi.controller.VideoControllerTest.get_all_videos_test(VideoControllerTest.java:111)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Loading