-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
577b719
commit 6b9c12f
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/test/java/com/gdschongik/gdsc/domain/member/domain/MemberTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |