diff --git a/backend/emm-sale/src/test/java/com/emmsale/feed/application/FeedCommandServiceTest.java b/backend/emm-sale/src/test/java/com/emmsale/feed/application/FeedCommandServiceTest.java index b16a6f975..14860fe4b 100644 --- a/backend/emm-sale/src/test/java/com/emmsale/feed/application/FeedCommandServiceTest.java +++ b/backend/emm-sale/src/test/java/com/emmsale/feed/application/FeedCommandServiceTest.java @@ -22,7 +22,6 @@ import com.emmsale.feed.exception.FeedException; import com.emmsale.feed.exception.FeedExceptionType; import com.emmsale.helper.ServiceIntegrationTestHelper; -import com.emmsale.image.application.ImageCommandService; import com.emmsale.image.domain.ImageType; import com.emmsale.member.MemberFixture; import com.emmsale.member.domain.Member; @@ -34,7 +33,6 @@ import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.mock.web.MockMultipartFile; class FeedCommandServiceTest extends ServiceIntegrationTestHelper { @@ -47,8 +45,6 @@ class FeedCommandServiceTest extends ServiceIntegrationTestHelper { private MemberRepository memberRepository; @Autowired private EventRepository eventRepository; - @MockBean - private ImageCommandService imageCommandService; private Member 작성자; private Event 이벤트1; diff --git a/backend/emm-sale/src/test/java/com/emmsale/helper/ServiceIntegrationTestHelper.java b/backend/emm-sale/src/test/java/com/emmsale/helper/ServiceIntegrationTestHelper.java index 784129923..bd14b8b5e 100644 --- a/backend/emm-sale/src/test/java/com/emmsale/helper/ServiceIntegrationTestHelper.java +++ b/backend/emm-sale/src/test/java/com/emmsale/helper/ServiceIntegrationTestHelper.java @@ -1,5 +1,6 @@ package com.emmsale.helper; +import com.emmsale.image.application.ImageCommandService; import com.emmsale.login.utils.GithubClient; import com.emmsale.notification.application.FirebaseCloudMessageClient; import org.springframework.boot.test.context.SpringBootTest; @@ -15,4 +16,6 @@ public abstract class ServiceIntegrationTestHelper { protected GithubClient githubClient; @MockBean protected FirebaseCloudMessageClient firebaseCloudMessageClient; + @MockBean + protected ImageCommandService imageCommandService; }