-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
깃허브 소셜 회원 가입시 계정의 닉네임이 없을 경우 기본값으로 저장 (#589)
fix: 사용자 이름 null 로 생성시 기본값 '익명의 사용자'를 사용하도록 수정
- Loading branch information
Showing
5 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
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
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
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
19 changes: 19 additions & 0 deletions
19
backend/baton/src/test/java/touch/baton/domain/member/vo/MemberNameTest.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,19 @@ | ||
package touch.baton.domain.member.vo; | ||
|
||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class MemberNameTest { | ||
|
||
@DisplayName("value 가 null 이면 기본값으로_생성한다") | ||
@Test | ||
void fail_if_value_is_null_then_default_value() { | ||
// given | ||
final MemberName memberName = new MemberName(null); | ||
|
||
// when, then | ||
assertThat(memberName.getValue()).isEqualTo("익명의 사용자"); | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
backend/baton/src/test/java/touch/baton/domain/member/vo/NameTest.java
This file was deleted.
Oops, something went wrong.