Skip to content

Commit

Permalink
fix: ReviewLikeServiceTest MockBean 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pminsung12 committed Sep 5, 2024
1 parent 3fa7a9a commit 2f6c29c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicLong;

import org.depromeet.spot.application.common.jwt.JwtProperties;
import org.depromeet.spot.application.common.jwt.JwtTokenUtil;
import org.depromeet.spot.domain.member.Level;
import org.depromeet.spot.domain.member.Member;
import org.depromeet.spot.domain.member.enums.MemberRole;
Expand All @@ -21,6 +23,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.jdbc.Sql;
Expand All @@ -35,7 +38,7 @@
@SpringBootTest
@Testcontainers
@ActiveProfiles("test")
@TestPropertySource("classpath:application-test.yml")
@TestPropertySource({"classpath:application-test.yml"})
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
@SqlGroup({
@Sql(
Expand All @@ -47,6 +50,10 @@
})
class ReviewLikeServiceTest {

@MockBean private JwtTokenUtil jwtTokenUtil;

@MockBean private JwtProperties jwtProperties;

@Autowired private ReviewLikeService reviewLikeService;

@Autowired private ReadReviewUsecase readReviewUsecase;
Expand Down

0 comments on commit 2f6c29c

Please sign in to comment.