Skip to content

Commit

Permalink
Merge pull request #154 from Team-SilverTown/refactor-flawless-faker-use
Browse files Browse the repository at this point in the history
⚙️ CI 과정 중 유저 닉네임 예외 발생 가능성 제거
  • Loading branch information
IjjS authored Mar 21, 2024
2 parents cbe9e36 + 48cbc24 commit 9d3b093
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/test/java/team/silvertown/masil/texture/UserTexture.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
public final class UserTexture extends BaseDomainTexture {

public static User createValidUser() {
String nickname = faker.funnyName()
.name();
String nickname = getRandomSentenceWithMax(20);
LocalDate birthDate = faker.date()
.birthdayLocalDate(20, 40);
int height = getRandomInt(170, 190);
Expand All @@ -25,8 +24,7 @@ public static User createValidUser() {
}

public static User createWalkedUser() {
String nickname = faker.funnyName()
.name();
String nickname = getRandomSentenceWithMax(20);
LocalDate birthDate = faker.date()
.birthdayLocalDate(20, 40);
int height = getRandomInt(170, 190);
Expand All @@ -38,8 +36,7 @@ public static User createWalkedUser() {
}

public static User createPrivateUser() {
String nickname = faker.funnyName()
.name();
String nickname = getRandomSentenceWithMax(20);
LocalDate birthDate = faker.date()
.birthdayLocalDate(20, 40);
int height = getRandomInt(170, 190);
Expand Down

0 comments on commit 9d3b093

Please sign in to comment.