From c097b672891ec9ebfdaf38d34cff8e9ae5395877 Mon Sep 17 00:00:00 2001 From: 70825 Date: Mon, 16 Oct 2023 16:00:20 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=8B=A4=EC=9D=8C=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EA=B0=80=20=EC=A1=B4=EC=9E=AC=ED=95=98?= =?UTF-8?q?=EB=8A=94=EC=A7=80=EB=8A=94=20hasNext=EB=A1=9C=20=ED=86=B5?= =?UTF-8?q?=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/funeat/review/dto/SortingReviewsResponse.java | 11 +++++------ .../com/funeat/acceptance/common/CommonSteps.java | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/backend/src/main/java/com/funeat/review/dto/SortingReviewsResponse.java b/backend/src/main/java/com/funeat/review/dto/SortingReviewsResponse.java index 4c7fe41d0..1dc082fe0 100644 --- a/backend/src/main/java/com/funeat/review/dto/SortingReviewsResponse.java +++ b/backend/src/main/java/com/funeat/review/dto/SortingReviewsResponse.java @@ -1,16 +1,15 @@ package com.funeat.review.dto; -import com.funeat.common.dto.PageDto; import java.util.List; public class SortingReviewsResponse { private final List reviews; - private final Boolean hasNextReview; + private final Boolean hasNext; - public SortingReviewsResponse(final List reviews, final Boolean hasNextReview) { + public SortingReviewsResponse(final List reviews, final Boolean hasNext) { this.reviews = reviews; - this.hasNextReview = hasNextReview; + this.hasNext = hasNext; } public static SortingReviewsResponse toResponse(final List reviews, final Boolean hasNextReview) { @@ -21,7 +20,7 @@ public List getReviews() { return reviews; } - public Boolean getHasNextReview() { - return hasNextReview; + public Boolean getHasNext() { + return hasNext; } } diff --git a/backend/src/test/java/com/funeat/acceptance/common/CommonSteps.java b/backend/src/test/java/com/funeat/acceptance/common/CommonSteps.java index 932115005..af33aa14f 100644 --- a/backend/src/test/java/com/funeat/acceptance/common/CommonSteps.java +++ b/backend/src/test/java/com/funeat/acceptance/common/CommonSteps.java @@ -76,7 +76,7 @@ public class CommonSteps { } public static void 다음_데이터가_있는지_검증한다(final ExtractableResponse response, final boolean expected) { - final var actual = response.jsonPath().getBoolean("hasNextReview"); + final var actual = response.jsonPath().getBoolean("hasNext"); assertThat(actual).isEqualTo(expected); }