Skip to content

Commit

Permalink
Create MockBeanInjection.java
Browse files Browse the repository at this point in the history
  • Loading branch information
KanuBang committed Jan 22, 2025
1 parent c0e064d commit 2df6c02
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/src/test/java/org/example/helper/MockBeanInjection.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.example.helper;

import org.example.domain.auth.AuthService;
import org.example.domain.auth.AuthenticationContext;
import org.example.domain.auth.jwt.JWTUtil;
import org.example.domain.member.MemberService;
import org.mockito.junit.jupiter.MockitoSettings;
import org.springframework.data.jpa.mapping.JpaMetamodelMappingContext;
import org.springframework.test.context.bean.override.mockito.MockitoBean;

public class MockBeanInjection {
//auth
@MockitoBean
protected JWTUtil jwtUtil;
@MockitoBean
protected AuthenticationContext authenticationContext;
@MockitoBean
protected AuthService authService;
@MockitoBean
protected MemberService memberService;

}

0 comments on commit 2df6c02

Please sign in to comment.