Skip to content

Commit cd923be

Browse files
committed
fix: dto의 필드명 변경
#1621
1 parent 7418118 commit cd923be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

backend/src/main/java/wooteco/prolog/roadmap/application/dto/KeywordResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ public class KeywordResponse {
2121
private int order;
2222
private int importance;
2323
private int totalQuizCount;
24-
private int answeredQuizCount;
24+
private int doneQuizCount;
2525
private Long parentKeywordId;
2626
private List<RecommendedPostResponse> recommendedPosts;
2727
private List<KeywordResponse> childrenKeywords;
2828

2929
public KeywordResponse(final Long keywordId, final String name, final String description,
3030
final int order, final int importance, final int totalQuizCount,
31-
final int answeredQuizCount, final Long parentKeywordId,
31+
final int doneQuizCount, final Long parentKeywordId,
3232
final List<RecommendedPostResponse> recommendedPosts,
3333
final List<KeywordResponse> childrenKeywords) {
3434
this.keywordId = keywordId;
@@ -37,7 +37,7 @@ public KeywordResponse(final Long keywordId, final String name, final String des
3737
this.order = order;
3838
this.importance = importance;
3939
this.totalQuizCount = totalQuizCount;
40-
this.answeredQuizCount = answeredQuizCount;
40+
this.doneQuizCount = doneQuizCount;
4141
this.parentKeywordId = parentKeywordId;
4242
this.recommendedPosts = recommendedPosts;
4343
this.childrenKeywords = childrenKeywords;

backend/src/test/java/wooteco/prolog/roadmap/application/RoadMapServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void findAllKeywordsWithProgress_login() {
153153

154154
private Consumer<List<? extends KeywordResponse>> containsAnsweredQuizCounts(final Integer... expected) {
155155
return keywords -> assertThat(keywords)
156-
.map(KeywordResponse::getAnsweredQuizCount)
156+
.map(KeywordResponse::getDoneQuizCount)
157157
.containsExactlyInAnyOrder(expected);
158158
}
159159

0 commit comments

Comments
 (0)