From e9026827ba9986355c1ee4927061cc4be2729f40 Mon Sep 17 00:00:00 2001 From: baejunil Date: Sat, 16 Sep 2023 23:38:56 +0900 Subject: [PATCH] =?UTF-8?q?[NAYB-148]=20style=20:=20Redis=EC=9D=98=20?= =?UTF-8?q?=ED=8F=89=EA=B7=A0=20=ED=8F=89=EC=A0=90=20=ED=82=A4=20=EB=84=A4?= =?UTF-8?q?=EC=9D=B4=EB=B0=8D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nabmart/domain/review/service/RedisCacheServiceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/prgrms/nabmart/domain/review/service/RedisCacheServiceTest.java b/src/test/java/com/prgrms/nabmart/domain/review/service/RedisCacheServiceTest.java index 71164865..fd7f4ec6 100644 --- a/src/test/java/com/prgrms/nabmart/domain/review/service/RedisCacheServiceTest.java +++ b/src/test/java/com/prgrms/nabmart/domain/review/service/RedisCacheServiceTest.java @@ -210,7 +210,7 @@ void shouldGetAverageRatingOfReviewsByItem() { reviewRepository.save(givenReview); double result = 5; - String cacheKey = "reviewCount:Item:" + givenItem.getItemId(); + String cacheKey = "averageRating:Item:" + givenItem.getItemId(); // when log.info("DB에서 평균 평점 가져오기"); @@ -255,7 +255,7 @@ void shouldUpdateAverageRatingAndNumberOfReviews() { userRepository.save(givenUser); reviewRepository.save(givenReview); - String cacheKey = "reviewCount:Item:" + givenItem.getItemId(); + String cacheKey = "averageRating:Item:" + givenItem.getItemId(); Review addReview = new Review(givenUser, givenItem, 3, "그냥 그러네"); reviewRepository.save(addReview);