-
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
Showing
14 changed files
with
111 additions
and
69 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
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
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
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
12 changes: 12 additions & 0 deletions
12
src/test/java/com/testutil/fixture/FindEmailDTOFixture.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,12 @@ | ||
package com.testutil.fixture; | ||
|
||
import com.airjnc.user.dto.request.FindEmailDTO; | ||
|
||
public class FindEmailDTOFixture { | ||
|
||
public static FindEmailDTO.FindEmailDTOBuilder getBuilder() { | ||
return FindEmailDTO.builder() | ||
.name(UserEntityFixture.NAME) | ||
.birthDate(UserEntityFixture.BIRTH_DATE.toString()); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,17 @@ | ||
package com.testutil.fixture; | ||
|
||
import com.airjnc.user.domain.Gender; | ||
import com.airjnc.user.dto.response.UserDTO; | ||
import java.time.LocalDate; | ||
|
||
public class UserDTOFixture { | ||
|
||
public static final Long ID = 2L; | ||
|
||
public static final String EMAIL = "test@naver.com"; | ||
|
||
public static final String NAME = "testUser"; | ||
|
||
public static final Gender GENDER = Gender.MALE; | ||
|
||
public static final String PHONE_NUMBER = "010-1111-2222"; | ||
|
||
public static final String ADDRESS = "서울 강남구"; | ||
|
||
public static final LocalDate BIRTH_DATE = LocalDate.of(2000, 5, 15); | ||
|
||
public static UserDTO.UserDTOBuilder getBuilder() { | ||
return UserDTO.builder() | ||
.id(ID) | ||
.email(EMAIL) | ||
.name(NAME) | ||
.gender(GENDER) | ||
.phoneNumber(PHONE_NUMBER) | ||
.address(ADDRESS) | ||
.birthDate(BIRTH_DATE); | ||
.id(UserEntityFixture.ID) | ||
.email(UserEntityFixture.EMAIL) | ||
.name(UserEntityFixture.NAME) | ||
.gender(UserEntityFixture.GENDER) | ||
.phoneNumber(UserEntityFixture.PHONE_NUMBER) | ||
.address(UserEntityFixture.ADDRESS) | ||
.birthDate(UserEntityFixture.BIRTH_DATE); | ||
} | ||
} |
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