Skip to content

Commit

Permalink
fix: deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Nov 30, 2024
1 parent e4b1726 commit 5814545
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.FilterType;
import org.springframework.http.MediaType;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.test.util.ReflectionTestUtils;
import org.springframework.test.web.servlet.MockMvc;

Expand Down Expand Up @@ -60,14 +60,14 @@ public class ActorControllerTest {
@Autowired
private MockMvc mockMvc;

@MockBean
@MockitoBean
private ActorService service;

@MockBean
@MockitoBean
private DefaultMapper mapper;


@MockBean
@MockitoBean
private JwtTokenService jwtTokenService;

private String token = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.FilterType;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.test.util.ReflectionTestUtils;
import org.springframework.test.web.servlet.MockMvc;

Expand All @@ -52,11 +53,11 @@ public class MovieControllerTest {

@Autowired
private MockMvc mockMvc;
@MockBean
@MockitoBean
private MovieService service;
@MockBean
@MockitoBean
private JwtTokenService jwtTokenService;
@MockBean
@MockitoBean
private DefaultMapper defaultMapper;

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 5814545

Please sign in to comment.