Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Member Service 테스트 작성 #54

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Member Service 테스트 작성 #54

wants to merge 1 commit into from

Conversation

ezeun
Copy link
Member

@ezeun ezeun commented Apr 28, 2024

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • 회원가입 테스트 작성

📝 참고사항

📚 기타

* 회원가입 테스트 작성
@ezeun ezeun added the test add test code label Apr 28, 2024
@ezeun ezeun self-assigned this Apr 28, 2024
Copy link
Collaborator

@kckc0608 kckc0608 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아주 죠아여

when(memberRepository.save(any())).thenReturn(member);

//when
Long memberId = memberService.join(member);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

memberService.join() 이 실행되면서 멤버 레포지토리에서 existsById() 가 호출될 때, 지금 인자로 넘긴 member의 id 가 null이라서 anyLong() 에 맞게 long 타입 데이터가 안넘아가고 있어여

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test add test code
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Member Service 테스트 작성
2 participants