Skip to content

Commit

Permalink
✅ [Test] 컨트롤러 테스트 LoggingFilter mock 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjin3395 committed Jan 20, 2025
1 parent 2a1b65e commit e5b162a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import com.gamegoo.gamegoo_v2.account.member.domain.LoginType;
import com.gamegoo.gamegoo_v2.account.member.domain.Member;
import com.gamegoo.gamegoo_v2.account.member.domain.Tier;
import com.gamegoo.gamegoo_v2.core.log.LogUtil;
import com.gamegoo.gamegoo_v2.core.log.LoggingFilter;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
Expand Down Expand Up @@ -45,6 +47,12 @@ public abstract class ControllerTestSupport {
@MockitoBean
protected CustomUserDetailsService customUserDetailsService;

@MockitoBean
protected LoggingFilter loggingFilter;

@MockitoBean
protected LogUtil logUtil;

@Autowired
protected ObjectMapper objectMapper;

Expand Down

0 comments on commit e5b162a

Please sign in to comment.