Skip to content

Commit

Permalink
refactor: 멤버 파트 응답 속성 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyma-s committed Oct 18, 2023
1 parent 10cea5f commit e44bcc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class MemberPartResponse {

@Schema(description = "멤버 파트 id", example = "1")
private final Long partId;
private final Long id;

@Schema(description = "멤버 파트 시작 초", example = "30")
private final int start;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void findById_exist_login_member() {
song.getLikeCountSortedKillingParts().get(2).getId())
.hasFieldOrPropertyWithValue("rank", 3)
.hasFieldOrPropertyWithValue("likeStatus", true),
() -> assertThat(response.getCurrentSong().getMemberPart().getPartId()).isNotNull()
() -> assertThat(response.getCurrentSong().getMemberPart().getId()).isNotNull()
);
}

Expand Down Expand Up @@ -314,12 +314,12 @@ void firstFindByMember() {
.toList()).usingRecursiveComparison().isEqualTo(List.of(2L, 1L)),
() -> assertThat(result.getCurrentSong().getMemberPart()).isNull(),
() -> assertThat(result.getPrevSongs().stream()
.map(songResponse -> songResponse.getMemberPart().getPartId())
.map(songResponse -> songResponse.getMemberPart().getId())
.toList())
.usingRecursiveComparison()
.isEqualTo(List.of(4L, 3L)),
() -> assertThat(result.getNextSongs().stream()
.map(songResponse -> songResponse.getMemberPart().getPartId())
.map(songResponse -> songResponse.getMemberPart().getId())
.toList())
.usingRecursiveComparison()
.isEqualTo(List.of(2L, 1L))
Expand Down Expand Up @@ -389,7 +389,7 @@ void findSongByIdForBeforeSwipe() {
.toList()).usingRecursiveComparison().isEqualTo(List.of(2L, 4L, 1L, 5L));
assertThat(beforeResponses.stream()
.map(SongResponse::getMemberPart)
.map(MemberPartResponse::getPartId)
.map(MemberPartResponse::getId)
.toList()).usingRecursiveComparison().isEqualTo(List.of(2L, 4L, 1L, 5L));
}

Expand Down Expand Up @@ -433,7 +433,7 @@ void findSongByIdForAfterSwipe() {
.toList()).usingRecursiveComparison().isEqualTo(List.of(1L, 5L, 3L));
assertThat(afterResponses.stream()
.map(SongResponse::getMemberPart)
.map(MemberPartResponse::getPartId)
.map(MemberPartResponse::getId)
.toList()).usingRecursiveComparison().isEqualTo(List.of(1L, 5L, 3L));
}
}
Expand Down Expand Up @@ -518,7 +518,7 @@ void findSongById() {
song.getLikeCountSortedKillingParts().get(2).getId())
.hasFieldOrPropertyWithValue("rank", 3)
.hasFieldOrPropertyWithValue("likeStatus", true),
() -> assertThat(response.getMemberPart().getPartId()).isNotNull()
() -> assertThat(response.getMemberPart().getId()).isNotNull()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void showSongsBeforeSongWithId() {
assertThat(response.stream()
.map(SongResponse::getId).toList())
.containsExactly(1L, 4L, 3L);
assertThat(response.get(0).getMemberPart().getPartId()).isNotNull();
assertThat(response.get(0).getMemberPart().getId()).isNotNull();
assertThat(response.get(1).getMemberPart()).isNull();
assertThat(response.get(2).getMemberPart()).isNull();
}
Expand Down

0 comments on commit e44bcc0

Please sign in to comment.