Skip to content

Commit

Permalink
test: 리턴값 추가에 따른 테스트코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mummhy0811 committed Jun 5, 2024
1 parent e17c1cd commit 7e24df5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/com/hanaro/triptogether/TeamServiceTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -51,6 +52,7 @@ public class TeamServiceTests {
private Long memberIdx = 1L;
private TeamMember teamMember;
private Long teamMemberIdx = 1L;
private Trip trip;

@BeforeEach
void setUp() {
Expand All @@ -75,13 +77,18 @@ void setUp() {
.createdAt(LocalDateTime.now())
.build();

trip = Trip.builder()
.tripIdx(1L)
.build();

team = Team.builder()
.teamIdx(teamIdx)
.account(account)
.teamName("Team Name")
.preferenceType(PreferenceType.해외)
.teamNotice("Team Notice")
.createdAt(LocalDateTime.now())
.preferTrip(trip)
.build();

teamMember = TeamMember.builder()
Expand Down

0 comments on commit 7e24df5

Please sign in to comment.