File tree 6 files changed +7
-7
lines changed
src/test/java/de/rieckpil/courses
6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
import org .junit .jupiter .api .Test ;
7
7
import org .springframework .beans .factory .annotation .Autowired ;
8
8
import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
9
- import org .springframework .boot .test .mock .mockito .MockitoBean ;
9
+ import org .springframework .boot .test .mock .mockito .MockBean ;
10
10
import org .springframework .context .annotation .Import ;
11
11
import org .springframework .http .HttpHeaders ;
12
12
import org .springframework .http .MediaType ;
25
25
@ Import (WebSecurityConfig .class )
26
26
class BookControllerTest {
27
27
28
- @ MockitoBean private BookManagementService bookManagementService ;
28
+ @ MockBean private BookManagementService bookManagementService ;
29
29
30
30
@ Autowired private MockMvc mockMvc ;
31
31
Original file line number Diff line number Diff line change 11
11
import org .slf4j .Logger ;
12
12
import org .slf4j .LoggerFactory ;
13
13
import org .springframework .beans .factory .annotation .Autowired ;
14
- import org .springframework .boot .test .mock .mockito .MockitoBean ;
14
+ import org .springframework .boot .test .mock .mockito .MockBean ;
15
15
import org .springframework .test .context .DynamicPropertyRegistry ;
16
16
import org .springframework .test .context .DynamicPropertySource ;
17
17
import org .testcontainers .containers .localstack .LocalStackContainer ;
Original file line number Diff line number Diff line change 17
17
import org .springframework .beans .factory .annotation .Autowired ;
18
18
import org .springframework .boot .autoconfigure .ImportAutoConfiguration ;
19
19
import org .springframework .boot .autoconfigure .jackson .JacksonAutoConfiguration ;
20
- import org .springframework .boot .test .mock .mockito .MockitoBean ;
20
+ import org .springframework .boot .test .mock .mockito .MockBean ;
21
21
import org .springframework .context .annotation .Import ;
22
22
import org .springframework .test .context .DynamicPropertyRegistry ;
23
23
import org .springframework .test .context .DynamicPropertySource ;
Original file line number Diff line number Diff line change 9
9
import org .junit .jupiter .api .Test ;
10
10
import org .springframework .beans .factory .annotation .Autowired ;
11
11
import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
12
- import org .springframework .boot .test .mock .mockito .MockitoBean ;
12
+ import org .springframework .boot .test .mock .mockito .MockBean ;
13
13
import org .springframework .context .annotation .Import ;
14
14
import org .springframework .http .MediaType ;
15
15
import org .springframework .security .test .context .support .WithMockUser ;
Original file line number Diff line number Diff line change 9
9
import org .junit .jupiter .api .Test ;
10
10
import org .springframework .beans .factory .annotation .Autowired ;
11
11
import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
12
- import org .springframework .boot .test .mock .mockito .MockitoBean ;
12
+ import org .springframework .boot .test .mock .mockito .MockBean ;
13
13
import org .springframework .context .annotation .Import ;
14
14
import org .springframework .http .HttpHeaders ;
15
15
import org .springframework .http .MediaType ;
Original file line number Diff line number Diff line change 9
9
import org .junit .jupiter .api .Test ;
10
10
import org .springframework .beans .factory .annotation .Autowired ;
11
11
import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
12
- import org .springframework .boot .test .mock .mockito .MockitoBean ;
12
+ import org .springframework .boot .test .mock .mockito .MockBean ;
13
13
import org .springframework .context .annotation .Import ;
14
14
import org .springframework .http .HttpHeaders ;
15
15
import org .springframework .http .MediaType ;
You can’t perform that action at this time.
0 commit comments