Skip to content

Member Service 테스트 작성 #54

Open
ezeun wants to merge 1 commit intodevfrom
test/service/member
Open

Member Service 테스트 작성 #54
ezeun wants to merge 1 commit intodevfrom
test/service/member

Conversation

@ezeun
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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