From baf760076444285466f25a191680d31cd4e5d7dd Mon Sep 17 00:00:00 2001 From: moonn6pence Date: Fri, 17 Nov 2023 20:23:27 +0900 Subject: [PATCH] =?UTF-8?q?hotfix=20:=20LunchController=20=EC=BB=A8?= =?UTF-8?q?=ED=8A=B8=EB=A1=A4=EB=9F=AC=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=BB=A8=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ssafsound/domain/lunch/service/LunchScrapService.java | 2 +- .../domain/lunch/service/ScrapInfoProviderFactory.java | 3 --- .../java/com/ssafy/ssafsound/global/docs/ControllerTest.java | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/ssafy/ssafsound/domain/lunch/service/LunchScrapService.java b/src/main/java/com/ssafy/ssafsound/domain/lunch/service/LunchScrapService.java index 72b82498..8e05f83c 100644 --- a/src/main/java/com/ssafy/ssafsound/domain/lunch/service/LunchScrapService.java +++ b/src/main/java/com/ssafy/ssafsound/domain/lunch/service/LunchScrapService.java @@ -22,8 +22,8 @@ import java.util.Objects; import java.util.stream.Collectors; -@RequiredArgsConstructor @Service +@RequiredArgsConstructor public class LunchScrapService { private final LunchRepository lunchRepository; diff --git a/src/main/java/com/ssafy/ssafsound/domain/lunch/service/ScrapInfoProviderFactory.java b/src/main/java/com/ssafy/ssafsound/domain/lunch/service/ScrapInfoProviderFactory.java index 230f4e71..0186325e 100644 --- a/src/main/java/com/ssafy/ssafsound/domain/lunch/service/ScrapInfoProviderFactory.java +++ b/src/main/java/com/ssafy/ssafsound/domain/lunch/service/ScrapInfoProviderFactory.java @@ -1,8 +1,5 @@ package com.ssafy.ssafsound.domain.lunch.service; -import com.ssafy.ssafsound.domain.lunch.service.FreshmealInfoProvider; -import com.ssafy.ssafsound.domain.lunch.service.ScrapInfoProvider; -import com.ssafy.ssafsound.domain.lunch.service.WelstoryInfoProvider; import org.springframework.stereotype.Component; import java.util.HashMap; diff --git a/src/test/java/com/ssafy/ssafsound/global/docs/ControllerTest.java b/src/test/java/com/ssafy/ssafsound/global/docs/ControllerTest.java index dc2d8d0d..cba694c0 100644 --- a/src/test/java/com/ssafy/ssafsound/global/docs/ControllerTest.java +++ b/src/test/java/com/ssafy/ssafsound/global/docs/ControllerTest.java @@ -11,6 +11,7 @@ import com.ssafy.ssafsound.domain.comment.service.CommentService; import com.ssafy.ssafsound.domain.lunch.controller.LunchController; import com.ssafy.ssafsound.domain.lunch.service.LunchPollService; +import com.ssafy.ssafsound.domain.lunch.service.LunchScrapService; import com.ssafy.ssafsound.domain.lunch.service.LunchService; import com.ssafy.ssafsound.domain.member.controller.MemberController; import com.ssafy.ssafsound.domain.member.service.MemberService; @@ -142,6 +143,9 @@ public class ControllerTest { @MockBean protected SemesterConstantProvider semesterConstantProvider; + @MockBean + protected LunchScrapService lunchScrapService; + protected static final Cookie ACCESS_TOKEN = new Cookie.Builder("accessToken", "accessTokenValue").build(); protected static final Cookie REFRESH_TOKEN = new Cookie.Builder("refreshToken", "refreshTokenValue").build();