From 2596051e0b82fab8d3a883e3c61ba706b4d8823a Mon Sep 17 00:00:00 2001 From: thguss Date: Wed, 31 Jan 2024 00:07:26 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20=EB=A9=94=EC=86=8C=EB=93=9C=EB=AA=85=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/smeme/server/controller/DiaryControllerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/smeme/server/controller/DiaryControllerTest.java b/src/test/java/com/smeme/server/controller/DiaryControllerTest.java index 1746790e..f83833f4 100644 --- a/src/test/java/com/smeme/server/controller/DiaryControllerTest.java +++ b/src/test/java/com/smeme/server/controller/DiaryControllerTest.java @@ -54,7 +54,7 @@ class DiaryControllerTest extends BaseControllerTest { void success_create_diary() throws Exception { // given DiaryRequestDTO request = new DiaryRequestDTO("Hello SMEEM!", 1L); - CreatedDiaryResponseDTO response = new CreatedDiaryResponseDTO(1L, badges()); + CreatedDiaryResponseDTO response = new CreatedDiaryResponseDTO(1L, acquiredBadges()); ResponseEntity result = ResponseEntity .created(URI.create("localhost:8080/api/v2/diaries/1")) .body(success("일기 작성 성공", response)); @@ -269,7 +269,7 @@ void success_get_diaries() throws Exception { .andExpect(status().isOk()); } - private List badges() { // acquiredBadge + private List acquiredBadges() { return Stream.iterate(1, i -> i + 1).limit(5) .map(i -> acquiredBadge()).toList(); }