Skip to content

Commit

Permalink
test: 멤버 회원가입 테스트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Jan 27, 2024
1 parent 577b719 commit 6b9c12f
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package com.gdschongik.gdsc.domain.member.domain;

import static org.assertj.core.api.Assertions.*;

import org.junit.jupiter.api.Test;

class MemberTest {

@Test
void 회원입시_MemberRole_GUEST이다() {
// given
Member member = Member.createGuestMember("testOauthId");

// when
MemberRole role = member.getRole();

// then
assertThat(role).isEqualTo(MemberRole.GUEST);
}

@Test
void 회원입시_MemberStatus_NORMAL이다() {
// given
Member member = Member.createGuestMember("testOauthId");

// when
MemberStatus status = member.getStatus();

// then
assertThat(status).isEqualTo(MemberStatus.NORMAL);
}
}

0 comments on commit 6b9c12f

Please sign in to comment.