Skip to content

Commit

Permalink
remove deprecated MockBean
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuism committed Jan 13, 2025
1 parent 30dcc8e commit aa37023
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import org.junit.jupiter.api.Test;
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.http.MediaType;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.test.web.servlet.MockMvc;

import static org.mockito.ArgumentMatchers.any;
Expand All @@ -30,7 +30,7 @@ class ExchangeTokenControllerTest {

@Autowired
private MockMvc mockMvc;
@MockBean
@MockitoBean
private ExchangeTokenService exchangeTokenService;
@Autowired
private ObjectMapper objectMapper;
Expand Down

0 comments on commit aa37023

Please sign in to comment.