From 7e24df5ce6bafaf5f65551a2c3c1f58d83aa8d3e Mon Sep 17 00:00:00 2001 From: mummhy0811 Date: Wed, 5 Jun 2024 13:09:55 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=EB=A6=AC=ED=84=B4=EA=B0=92=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=EC=97=90=20=EB=94=B0=EB=A5=B8=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hanaro/triptogether/TeamServiceTests.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/java/com/hanaro/triptogether/TeamServiceTests.java b/src/test/java/com/hanaro/triptogether/TeamServiceTests.java index 8b22831..9882eb8 100644 --- a/src/test/java/com/hanaro/triptogether/TeamServiceTests.java +++ b/src/test/java/com/hanaro/triptogether/TeamServiceTests.java @@ -12,6 +12,7 @@ import com.hanaro.triptogether.team.service.impl.TeamServiceImpl; import com.hanaro.triptogether.teamMember.domain.TeamMember; import com.hanaro.triptogether.teamMember.domain.TeamMemberRepository; +import com.hanaro.triptogether.trip.domain.Trip; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -51,6 +52,7 @@ public class TeamServiceTests { private Long memberIdx = 1L; private TeamMember teamMember; private Long teamMemberIdx = 1L; + private Trip trip; @BeforeEach void setUp() { @@ -75,6 +77,10 @@ void setUp() { .createdAt(LocalDateTime.now()) .build(); + trip = Trip.builder() + .tripIdx(1L) + .build(); + team = Team.builder() .teamIdx(teamIdx) .account(account) @@ -82,6 +88,7 @@ void setUp() { .preferenceType(PreferenceType.해외) .teamNotice("Team Notice") .createdAt(LocalDateTime.now()) + .preferTrip(trip) .build(); teamMember = TeamMember.builder()