Skip to content

LauroSilveira has started workflow #168

LauroSilveira has started workflow

LauroSilveira has started workflow #168

GitHub Actions / Test Reporter Summary failed Jan 3, 2024 in 0s

Test Reporter Summary ❌

Tests failed

Report Passed Failed Skipped Time
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.AuthenticationControllerTest.xml 1✅ 70ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.CategoryControllerTest.xml 6✅ 180ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.ControllerAdviceTest.xml 2✅ 783ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.UserControllerTest.xml 2✅ 53ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.VideoControllerTest.xml 7✅ 9s
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml 2✅ 5s
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.xml 4✅ 90ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest.xml 6✅ 245ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest.xml 1✅ 48ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest.xml 1✅ 1❌ 270ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest.xml 12✅ 84ms

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.AuthenticationControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.AuthenticationControllerTest 1✅ 70ms

✅ com.alura.aluraflixapi.controller.AuthenticationControllerTest

✅ login_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.CategoryControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.CategoryControllerTest 6✅ 180ms

✅ com.alura.aluraflixapi.controller.CategoryControllerTest

✅ categories_test
✅ getVideosByCategory_return_no_content_test
✅ findCategoryById_test
✅ create_test
✅ deleteCategory_test
✅ getVideosByCategory_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.ControllerAdviceTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.ControllerAdviceTest 2✅ 783ms

✅ com.alura.aluraflixapi.controller.ControllerAdviceTest

✅ handleInvalidFields_test
✅ handlerResourceNotFoundException_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.UserControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.UserControllerTest 2✅ 53ms

✅ com.alura.aluraflixapi.controller.UserControllerTest

✅ getUsers_test
✅ saveUser_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.VideoControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.VideoControllerTest 7✅ 9s

✅ com.alura.aluraflixapi.controller.VideoControllerTest

✅ get_video_by_id
✅ delete_video_by_id_test
✅ getVideosByTitle_test
✅ get_all_videos_test
✅ save_a_new_video_test
✅ getVideosByTitle_response_no_content_test
✅ update_video_by_id_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest 2✅ 5s

✅ com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest

✅ findVideoByTitleTest
✅ findVideosByCategoriesTest

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.security.TokenServiceTest 4✅ 90ms

✅ com.alura.aluraflixapi.infraestructure.security.TokenServiceTest

✅ generateTokenJWT_KO_test
✅ getSubject_KO_test
✅ getSubject_test
✅ generateTokenJWT_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest 6✅ 245ms

✅ com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest

✅ should_delete_a_category_test
✅ should_findCategory_by_id_test
✅ should_return_a_category_searching_by_video_test
✅ should_return_all_categories_in_database_test
✅ should_throw_categoryTransactionException_when_create_a_new_category_test
✅ should_create_a_new_category_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest 1✅ 48ms

✅ com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest

✅ loadUserByUsername_test

❌ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest 1✅ 1❌ 270ms

❌ com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest

❌ getUsers_test
	java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
✅ saveUser_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest.xml

12 tests were completed in 84ms with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest 12✅ 84ms

✅ com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest

✅ getVideos_response_ko_test
✅ deleteVideo_response_ko_test
✅ getVideosByTitle_response_ok_test
✅ delete_response_ok_test
✅ getVideosByTitle_response_ko_test
✅ save_response_ok_test
✅ getById_response_ok_test
✅ updateVideo_response_ko_test
✅ getVideos_response_ok_test
✅ save_response_ko_test
✅ getById_response_ko_test
✅ updateMovie_response_ok_test

Annotations

Check failure on line 78 in src/test/java/com/alura/aluraflixapi/infraestructure/service/UserServiceImplTest.java

See this annotation in the file changed.

@github-actions github-actions / Test Reporter Summary

com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest ► getUsers_test

Failed test found in:
  target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest.xml
Error:
  java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
Raw output
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
	at java.base/java.util.ImmutableCollections$ListN.get(ImmutableCollections.java:680)
	at com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest.getUsers_test(UserServiceImplTest.java:78)
	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)