test: UserService 단위 테스트 추가 + 닉네임 자기재저장 버그 수정 - #216
Conversation
getMyPage/updateUserNickname/getUserProfile/deleteUser 전체 메서드에 대해 정상 케이스 + 예외 케이스 + 경계값 검증 (17개). 테스트 작성 중 발견해서 수정한 버그: - updateUserNickname: 중복 닉네임 체크를 유저 조회보다 먼저, 그리고 본인의 현재 닉네임과 비교 없이 수행하고 있어서, 본인의 기존 닉네임을 그대로 다시 저장하려고 해도 "이미 존재하는 닉네임"으로 거부됐음. 유저 조회를 먼저 하고, 요청 닉네임이 현재 닉네임과 다를 때만 중복 체크를 하도록 순서/조건 수정.
|
Warning Review limit reached
Next review available in: 5 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
작업 배경
변경 사항
UserService.updateUserNicknameUserServiceTest영향 범위
updateUserNickname은 이제 본인의 기존 닉네임 그대로 "저장"을 눌러도 에러가 안 남 (기존엔 "이미 존재하는 닉네임"으로 거부됨). 다른 입력값에 대한 동작은 그대로.검증 매트릭스
정상_조회•
스탬프_없음•
스탬프_4개면_한바퀴•
존재하지_않는_유저정상_변경•
중복_닉네임•
본인_현재_닉네임으로_재저장•
존재하지_않는_유저정상_조회•
스크랩_안함•
공개한_코스_없음•
프로필_유저_없음•
요청_유저_없음일반_유저_삭제•
애플_유저_토큰_있음•
애플_유저_토큰_없음•
존재하지_않는_유저Test Plan
./gradlew build전체(기존 ServerApplicationTests 포함) 통과 확인🤖 Generated with Claude Code