File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
spring-petclinic-server/src/test/java/org/springframework/samples/petclinic/web Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import org .springframework .beans .factory .annotation .Autowired ;
55import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
6- import org .springframework .boot . test .mock . mockito .MockBean ;
6+ import org .springframework .test .context . bean . override . mockito .MockitoBean ;
77import org .springframework .http .MediaType ;
88import org .springframework .samples .petclinic .model .Owner ;
99import org .springframework .samples .petclinic .model .Pet ;
@@ -23,7 +23,7 @@ public class PetResourceTests {
2323 @ Autowired
2424 private MockMvc mvc ;
2525
26- @ MockBean
26+ @ MockitoBean
2727 ClinicService clinicService ;
2828
2929 @ Test
Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import org .springframework .beans .factory .annotation .Autowired ;
55import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
6- import org .springframework .boot . test .mock . mockito .MockBean ;
6+ import org .springframework .test .context . bean . override . mockito .MockitoBean ;
77import org .springframework .http .MediaType ;
88import org .springframework .samples .petclinic .model .Vet ;
99import org .springframework .samples .petclinic .service .ClinicService ;
@@ -22,7 +22,7 @@ public class VetResourceTests {
2222 @ Autowired
2323 private MockMvc mvc ;
2424
25- @ MockBean
25+ @ MockitoBean
2626 ClinicService clinicService ;
2727
2828 @ Test
You can’t perform that action at this time.
0 commit comments