-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
14 additions
and
11 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/test/java/com/atwoz/survey/fixture/SurveySoulmateResponseFixture.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 |
---|---|---|
@@ -1,10 +1,21 @@ | ||
package com.atwoz.survey.fixture; | ||
|
||
import com.atwoz.member.domain.member.Member; | ||
import com.atwoz.survey.infrastructure.membersurvey.dto.SurveySoulmateResponse; | ||
|
||
public class SurveySoulmateResponseFixture { | ||
|
||
public static SurveySoulmateResponse 소울메이트_응답() { | ||
return new SurveySoulmateResponse(1L, "nickname", "서울시", "강남구", 25); | ||
} | ||
|
||
public static SurveySoulmateResponse 소울메이트_응답_회원(final Member member) { | ||
return new SurveySoulmateResponse( | ||
member.getId(), | ||
member.getNickname(), | ||
member.getMemberProfile().getProfile().getLocation().getCity(), | ||
member.getMemberProfile().getProfile().getLocation().getSector(), | ||
member.getMemberProfile().getProfile().getPhysicalProfile().getAge() | ||
); | ||
} | ||
} |
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