From 15d73238cd80f383bc064ef3ce4301ed6617d4c9 Mon Sep 17 00:00:00 2001 From: whitemark Date: Mon, 8 Jan 2024 01:14:22 +0900 Subject: [PATCH] =?UTF-8?q?[feature/#209]=20test=20=EA=B0=84=EB=8B=A8?= =?UTF-8?q?=ED=95=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/domain/club/usecase/ClubHistoryServiceImplTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resource-server/src/test/java/com/inhabas/api/domain/club/usecase/ClubHistoryServiceImplTest.java b/resource-server/src/test/java/com/inhabas/api/domain/club/usecase/ClubHistoryServiceImplTest.java index 1409a427..a18e30af 100644 --- a/resource-server/src/test/java/com/inhabas/api/domain/club/usecase/ClubHistoryServiceImplTest.java +++ b/resource-server/src/test/java/com/inhabas/api/domain/club/usecase/ClubHistoryServiceImplTest.java @@ -132,7 +132,12 @@ void getClubHistories_Success() { .build(); List clubHistoryList = List.of(clubHistory); + + Sort sort = Sort.by(Sort.Direction.DESC, "dateHistory"); + + + given(clubHistoryRepository.findAll(sort)).willReturn(clubHistoryList);