Skip to content

Commit

Permalink
Merge pull request #1623 from woowacourse/fix/1621
Browse files Browse the repository at this point in the history
응답 DTO의 필드명 변경으로 인한 버그 수정
  • Loading branch information
nuyh99 authored Nov 23, 2023
2 parents 7418118 + cd923be commit 0bcb0f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public class KeywordResponse {
private int order;
private int importance;
private int totalQuizCount;
private int answeredQuizCount;
private int doneQuizCount;
private Long parentKeywordId;
private List<RecommendedPostResponse> recommendedPosts;
private List<KeywordResponse> childrenKeywords;

public KeywordResponse(final Long keywordId, final String name, final String description,
final int order, final int importance, final int totalQuizCount,
final int answeredQuizCount, final Long parentKeywordId,
final int doneQuizCount, final Long parentKeywordId,
final List<RecommendedPostResponse> recommendedPosts,
final List<KeywordResponse> childrenKeywords) {
this.keywordId = keywordId;
Expand All @@ -37,7 +37,7 @@ public KeywordResponse(final Long keywordId, final String name, final String des
this.order = order;
this.importance = importance;
this.totalQuizCount = totalQuizCount;
this.answeredQuizCount = answeredQuizCount;
this.doneQuizCount = doneQuizCount;
this.parentKeywordId = parentKeywordId;
this.recommendedPosts = recommendedPosts;
this.childrenKeywords = childrenKeywords;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void findAllKeywordsWithProgress_login() {

private Consumer<List<? extends KeywordResponse>> containsAnsweredQuizCounts(final Integer... expected) {
return keywords -> assertThat(keywords)
.map(KeywordResponse::getAnsweredQuizCount)
.map(KeywordResponse::getDoneQuizCount)
.containsExactlyInAnyOrder(expected);
}

Expand Down

0 comments on commit 0bcb0f9

Please sign in to comment.