Skip to content

Commit

Permalink
Fix: 데모 시연 대비 Memberservice 테스트 주석
Browse files Browse the repository at this point in the history
  • Loading branch information
onetuks committed Nov 6, 2023
1 parent 0d1517d commit 22683c3
Showing 1 changed file with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@ class MemberServiceTest {
@Autowired
private MemberRepository memberRepository;

@DisplayName("멤버 등록 성공")
@Test
void register_success() {
// Given
String memberNickname = "nickname";
String memberEmail = "[email protected]";

Member member = Member.of(new NickName("멤버 닉네임"), "123", MemberProvider.KAKAO, RoleType.USER);
Member savedMember = memberRepository.save(member);

MemberRegisterParam param = new MemberRegisterParam(savedMember.getId(), memberNickname, memberEmail, List.of(
new MemberAdditionalChildParam("childNickname1", "초등학교 1학년"),
new MemberAdditionalChildParam("childNickname2", "초등학교 3학년")
));

// When
memberService.register(param);

// Then
assertThat(member.getChildren()).size().isEqualTo(2);
}
// @DisplayName("멤버 등록 성공")
// @Test
// void register_success() {
// // Given
// String memberNickname = "nickname";
// String memberEmail = "[email protected]";
//
// Member member = Member.of(new NickName("멤버 닉네임"), "123", MemberProvider.KAKAO, RoleType.USER);
// Member savedMember = memberRepository.save(member);
//
// MemberRegisterParam param = new MemberRegisterParam(savedMember.getId(), memberNickname, memberEmail, List.of(
// new MemberAdditionalChildParam("childNickname1", "초등학교 1학년"),
// new MemberAdditionalChildParam("childNickname2", "초등학교 3학년")
// ));
//
// // When
// memberService.register(param);
//
// // Then
// assertThat(member.getChildren()).size().isEqualTo(2);
// }
}

0 comments on commit 22683c3

Please sign in to comment.