Skip to content

Refactor: 점수,알림,신고 기능 추가 및 기존 로직 리팩토링 #98

Refactor: 점수,알림,신고 기능 추가 및 기존 로직 리팩토링

Refactor: 점수,알림,신고 기능 추가 및 기존 로직 리팩토링 #98

Triggered via pull request August 21, 2025 13:08
Status Failure
Total duration 1m 8s
Artifacts

ci-cd.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

22 errors
com.example.cp_main_be.domain.admin.service.AdminServiceTest ► 퀴즈 옵션 생성 성공: src/main/java/com/example/cp_main_be/domain/admin/service/AdminService.java#L85
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.admin.service.AdminServiceTest.xml Error: java.lang.IllegalArgumentException: 퀴즈 타입의 미션에만 선지를 추가할 수 있습니다.
com.example.cp_main_be.domain.auth.service.AuthServiceTest ► 액세스 토큰 재발급 성공: src/test/java/com/example/cp_main_be/domain/auth/service/AuthServiceTest.java#L52
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.auth.service.AuthServiceTest.xml Error: org.opentest4j.AssertionFailedError: expected: <newRefreshToken> but was: <validRefreshToken>
com.example.cp_main_be.domain.auth.service.AuthServiceTest ► 액세스 토큰 재발급 실패 - 사용자 없음: src/test/java/com/example/cp_main_be/domain/auth/service/AuthServiceTest.java#L88
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.auth.service.AuthServiceTest.xml Error: org.opentest4j.AssertionFailedError: Expected java.lang.RuntimeException to be thrown, but nothing was thrown.
com.example.cp_main_be.domain.garden.service.GardenServiceTest ► 실패 - 최대 텃밭 개수(3개)에 도달했을 때 예외가 발생한다: src/test/java/com/example/cp_main_be/domain/garden/service/GardenServiceTest.java#L166
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.garden.service.GardenServiceTest.xml Error: org.opentest4j.AssertionFailedError: Expected java.lang.IllegalStateException to be thrown, but nothing was thrown.
com.example.cp_main_be.domain.social.comment.service.CommentServiceTest ► 댓글 수정 성공: src/main/java/com/example/cp_main_be/domain/social/comment/service/CommentService.java#L108
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.comment.service.CommentServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.social.avatarpost.domain.AvatarPost.getId()" because the return value of "com.example.cp_main_be.domain.social.comment.domain.Comment.getAvatarPost()" is null
com.example.cp_main_be.domain.social.comment.service.CommentServiceTest ► 댓글 생성 성공: src/main/java/com/example/cp_main_be/domain/social/comment/service/CommentService.java#L51
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.comment.service.CommentServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.social.diary.domain.Repository.DiaryRepository.findById(Object)" because "this.diaryRepository" is null
com.example.cp_main_be.domain.social.feed.service.FeedServiceTest ► 피드 조회 성공 - 필터 없음: src/main/java/com/example/cp_main_be/domain/social/feed/service/FeedService.java#L62
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.feed.service.FeedServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.social.diary.domain.Repository.DiaryRepository.findByIsPublicIsTrue(org.springframework.data.domain.Pageable)" because "this.diaryRepository" is null
com.example.cp_main_be.domain.social.feed.service.FeedServiceTest ► 피드 조회 실패 - 사용자 없음: src/test/java/com/example/cp_main_be/domain/social/feed/service/FeedServiceTest.java#L70
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.feed.service.FeedServiceTest.xml Error: org.opentest4j.AssertionFailedError: Unexpected exception type thrown, expected: <com.example.cp_main_be.global.exception.UserNotFoundException> but was: <java.lang.NullPointerException>
com.example.cp_main_be.domain.social.feed.service.FeedServiceTest ► 피드 조회 성공 - following 필터: src/main/java/com/example/cp_main_be/domain/social/feed/service/FeedService.java#L52
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.feed.service.FeedServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.social.follow.domain.repository.FollowRepository.findByFollower(com.example.cp_main_be.domain.member.user.domain.User)" because "this.followRepository" is null
com.example.cp_main_be.domain.social.guestbook.service.GuestbookServiceTest ► 방명록 작성 성공: src/main/java/com/example/cp_main_be/domain/social/guestbook/service/GuestbookService.java#L54
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.guestbook.service.GuestbookServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.member.user.service.UserService.getCurrentUser()" because "this.userService" is null
build
Failed test were found and 'fail-on-error' option is set to true
build
Process completed with exit code 1.
com.example.cp_main_be.domain.admin.service.AdminServiceTest ► 퀴즈 옵션 생성 성공: src/main/java/com/example/cp_main_be/domain/admin/service/AdminService.java#L85
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.admin.service.AdminServiceTest.xml Error: java.lang.IllegalArgumentException: 퀴즈 타입의 미션에만 선지를 추가할 수 있습니다.
com.example.cp_main_be.domain.auth.service.AuthServiceTest ► 액세스 토큰 재발급 성공: src/test/java/com/example/cp_main_be/domain/auth/service/AuthServiceTest.java#L52
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.auth.service.AuthServiceTest.xml Error: org.opentest4j.AssertionFailedError: expected: <newRefreshToken> but was: <validRefreshToken>
com.example.cp_main_be.domain.auth.service.AuthServiceTest ► 액세스 토큰 재발급 실패 - 사용자 없음: src/test/java/com/example/cp_main_be/domain/auth/service/AuthServiceTest.java#L88
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.auth.service.AuthServiceTest.xml Error: org.opentest4j.AssertionFailedError: Expected java.lang.RuntimeException to be thrown, but nothing was thrown.
com.example.cp_main_be.domain.garden.service.GardenServiceTest ► 실패 - 최대 텃밭 개수(3개)에 도달했을 때 예외가 발생한다: src/test/java/com/example/cp_main_be/domain/garden/service/GardenServiceTest.java#L166
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.garden.service.GardenServiceTest.xml Error: org.opentest4j.AssertionFailedError: Expected java.lang.IllegalStateException to be thrown, but nothing was thrown.
com.example.cp_main_be.domain.social.comment.service.CommentServiceTest ► 댓글 수정 성공: src/main/java/com/example/cp_main_be/domain/social/comment/service/CommentService.java#L108
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.comment.service.CommentServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.social.avatarpost.domain.AvatarPost.getId()" because the return value of "com.example.cp_main_be.domain.social.comment.domain.Comment.getAvatarPost()" is null
com.example.cp_main_be.domain.social.comment.service.CommentServiceTest ► 댓글 생성 성공: src/main/java/com/example/cp_main_be/domain/social/comment/service/CommentService.java#L51
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.comment.service.CommentServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.social.diary.domain.Repository.DiaryRepository.findById(Object)" because "this.diaryRepository" is null
com.example.cp_main_be.domain.social.feed.service.FeedServiceTest ► 피드 조회 성공 - 필터 없음: src/main/java/com/example/cp_main_be/domain/social/feed/service/FeedService.java#L62
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.feed.service.FeedServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.social.diary.domain.Repository.DiaryRepository.findByIsPublicIsTrue(org.springframework.data.domain.Pageable)" because "this.diaryRepository" is null
com.example.cp_main_be.domain.social.feed.service.FeedServiceTest ► 피드 조회 실패 - 사용자 없음: src/test/java/com/example/cp_main_be/domain/social/feed/service/FeedServiceTest.java#L70
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.feed.service.FeedServiceTest.xml Error: org.opentest4j.AssertionFailedError: Unexpected exception type thrown, expected: <com.example.cp_main_be.global.exception.UserNotFoundException> but was: <java.lang.NullPointerException>
com.example.cp_main_be.domain.social.feed.service.FeedServiceTest ► 피드 조회 성공 - following 필터: src/main/java/com/example/cp_main_be/domain/social/feed/service/FeedService.java#L52
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.feed.service.FeedServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.social.follow.domain.repository.FollowRepository.findByFollower(com.example.cp_main_be.domain.member.user.domain.User)" because "this.followRepository" is null
com.example.cp_main_be.domain.social.guestbook.service.GuestbookServiceTest ► 방명록 작성 성공: src/main/java/com/example/cp_main_be/domain/social/guestbook/service/GuestbookService.java#L54
Failed test found in: build/test-results/test/TEST-com.example.cp_main_be.domain.social.guestbook.service.GuestbookServiceTest.xml Error: java.lang.NullPointerException: Cannot invoke "com.example.cp_main_be.domain.member.user.service.UserService.getCurrentUser()" because "this.userService" is null