Skip to content

Commit

Permalink
refactor: 이미지 서비스 ServiceIntegrationTestHelper에서 모킹하도록 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonjerry committed Sep 21, 2023
1 parent 8dcb1da commit a8663bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand All @@ -47,8 +45,6 @@ class FeedCommandServiceTest extends ServiceIntegrationTestHelper {
private MemberRepository memberRepository;
@Autowired
private EventRepository eventRepository;
@MockBean
private ImageCommandService imageCommandService;

private Member 작성자;
private Event 이벤트1;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -15,4 +16,6 @@ public abstract class ServiceIntegrationTestHelper {
protected GithubClient githubClient;
@MockBean
protected FirebaseCloudMessageClient firebaseCloudMessageClient;
@MockBean
protected ImageCommandService imageCommandService;
}

0 comments on commit a8663bc

Please sign in to comment.