Skip to content

Commit 2df6c02

Browse files
committed
Create MockBeanInjection.java
1 parent c0e064d commit 2df6c02

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package org.example.helper;
2+
3+
import org.example.domain.auth.AuthService;
4+
import org.example.domain.auth.AuthenticationContext;
5+
import org.example.domain.auth.jwt.JWTUtil;
6+
import org.example.domain.member.MemberService;
7+
import org.mockito.junit.jupiter.MockitoSettings;
8+
import org.springframework.data.jpa.mapping.JpaMetamodelMappingContext;
9+
import org.springframework.test.context.bean.override.mockito.MockitoBean;
10+
11+
public class MockBeanInjection {
12+
//auth
13+
@MockitoBean
14+
protected JWTUtil jwtUtil;
15+
@MockitoBean
16+
protected AuthenticationContext authenticationContext;
17+
@MockitoBean
18+
protected AuthService authService;
19+
@MockitoBean
20+
protected MemberService memberService;
21+
22+
}

0 commit comments

Comments
 (0)