-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: #182 EventReview 작성자(회원) 추가 및 리뷰 작성, 수정, 삭제 로직에 회원 관련 로직 추가 * test: #182 EventReview 테스트 부분 MemberFactory로 Member 생성하도록 변경 --------- Co-authored-by: Kyunghun Kim <[email protected]>
- Loading branch information
Showing
7 changed files
with
95 additions
and
28 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
20 changes: 20 additions & 0 deletions
20
api/api-event/src/test/java/com/pgms/apievent/factory/member/MemberFactory.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,20 @@ | ||
package com.pgms.apievent.factory.member; | ||
|
||
import com.pgms.coredomain.domain.member.Member; | ||
import com.pgms.coredomain.domain.member.enums.Gender; | ||
|
||
public class MemberFactory { | ||
public static Member createMember() { | ||
return Member.builder() | ||
.email("[email protected]") | ||
.password("encodedPassword") | ||
.name("tester") | ||
.phoneNumber("01011112222") | ||
.birthDate("19990926") | ||
.gender(Gender.MALE) | ||
.streetAddress("서울특별시 송파구 올림픽로 300") | ||
.detailAddress("롯데월드타워앤드롯데월드몰") | ||
.zipCode("05551") | ||
.build(); | ||
} | ||
} |
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