File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
spring-cloud-app-broker-logging/src/test/java/org/springframework/cloud/appbroker/logging Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11pluginManagement {
22 plugins {
33 id " io.spring.nohttp" version " 0.0.11"
4- id ' org.springframework.boot' version " 3.3.8 "
4+ id ' org.springframework.boot' version " 3.4.2 "
55 id ' org.asciidoctor.jvm.pdf' version ' 4.0.4'
66 id ' org.asciidoctor.jvm.convert' version ' 4.0.4'
77 }
Original file line number Diff line number Diff line change 3939import reactor .core .publisher .Mono ;
4040
4141import org .springframework .boot .test .context .SpringBootTest ;
42- import org .springframework .boot .test .mock .mockito .MockBean ;
4342import org .springframework .boot .test .web .server .LocalServerPort ;
43+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
4444import org .springframework .test .web .reactive .server .WebTestClient ;
4545
4646import static org .mockito .ArgumentMatchers .any ;
@@ -52,10 +52,10 @@ class ServiceInstanceRecentLogsTest {
5252 @ LocalServerPort
5353 private int port ;
5454
55- @ MockBean
55+ @ MockitoBean
5656 private LogCacheClient logCacheClient ;
5757
58- @ MockBean ( answer = Answers .RETURNS_DEEP_STUBS )
58+ @ MockitoBean ( answers = Answers .RETURNS_DEEP_STUBS )
5959 private CloudFoundryClient cloudFoundryClient ;
6060
6161 private String expectedTestMessage ;
Original file line number Diff line number Diff line change 4545
4646import org .springframework .beans .factory .annotation .Autowired ;
4747import org .springframework .boot .test .context .SpringBootTest ;
48- import org .springframework .boot .test .mock .mockito .MockBean ;
4948import org .springframework .boot .test .web .server .LocalServerPort ;
5049import org .springframework .cloud .appbroker .logging .streaming .events .ServiceInstanceLogEvent ;
5150import org .springframework .context .ApplicationEventPublisher ;
5251import org .springframework .core .io .buffer .DataBuffer ;
52+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
5353import org .springframework .web .reactive .socket .WebSocketHandler ;
5454import org .springframework .web .reactive .socket .client .ReactorNettyWebSocketClient ;
5555import org .springframework .web .reactive .socket .client .WebSocketClient ;
@@ -67,10 +67,10 @@ class ServiceInstanceLogStreamingTest {
6767 @ LocalServerPort
6868 private int port ;
6969
70- @ MockBean
70+ @ MockitoBean
7171 private LogCacheClient logCacheClient ;
7272
73- @ MockBean ( answer = Answers .RETURNS_DEEP_STUBS )
73+ @ MockitoBean ( answers = Answers .RETURNS_DEEP_STUBS )
7474 private CloudFoundryClient cloudFoundryClient ;
7575
7676 @ Autowired
You can’t perform that action at this time.
0 commit comments