Skip to content

Commit

Permalink
YEL-228 [feat] SlackService mock 주입
Browse files Browse the repository at this point in the history
  • Loading branch information
euije committed Mar 25, 2024
1 parent bc99565 commit c8b91ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.yello.server.domain.user.entity.Social;
import com.yello.server.domain.user.entity.User;
import com.yello.server.global.exception.ControllerExceptionAdvice;
import com.yello.server.infrastructure.slack.service.SlackService;
import com.yello.server.util.TestDataEntityUtil;
import com.yello.server.util.TestDataUtil;
import com.yello.server.util.WithAccessTokenUser;
Expand Down Expand Up @@ -96,6 +97,9 @@ class AuthControllerTest {
@MockBean
private AuthService authService;

@MockBean
private SlackService slackService;

private TestDataUtil testDataUtil = new TestDataEntityUtil();
private User user;
private User target;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.yello.server.domain.purchase.service.PurchaseService;
import com.yello.server.domain.user.entity.User;
import com.yello.server.global.exception.ControllerExceptionAdvice;
import com.yello.server.infrastructure.slack.service.SlackService;
import com.yello.server.util.TestDataEntityUtil;
import com.yello.server.util.TestDataUtil;
import com.yello.server.util.WithAccessTokenUser;
Expand Down Expand Up @@ -90,6 +91,9 @@ class PurchaseControllerTest {

@MockBean
private PurchaseService purchaseService;

@MockBean
private SlackService slackService;

private TestDataUtil testDataUtil = new TestDataEntityUtil();
private User user;
Expand Down

0 comments on commit c8b91ec

Please sign in to comment.