Skip to content

Commit

Permalink
[FEAT] Search Member By Nickname Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jinjoo-lab committed Nov 27, 2023
1 parent 1c156d6 commit baec591
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,17 @@ void getResponseByMember() {
// then
assertThat(memberResponse.getId()).isEqualTo(member.getId());
}

@Test
@DisplayName("Nickname을 통한 Member 검색이 수행되는가")
void searchMemberByNickname(){
// given
final Member member = memberRepository.save(MemberEntityFixture.FIRST_MEMBER.toEntity());

// when
final MemberResponse response = memberService.getMemberByNickname(member.getNickname());

// then
assertThat(response.getId()).isEqualTo(member.getId());
}
}

0 comments on commit baec591

Please sign in to comment.