File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
main/java/io/javaoperatorsdk/operator/springboot/starter
test/java/io/javaoperatorsdk/operator/springboot/starter Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 5858 <maven .compiler.target>17</maven .compiler.target>
5959 <maven .compiler.release>17</maven .compiler.release>
6060 <spotless .version>2.43.0</spotless .version>
61- <spring-boot .version>3.3.6 </spring-boot .version>
61+ <spring-boot .version>3.4.0 </spring-boot .version>
6262 <josdk .version>5.0.0-beta1</josdk .version>
6363 <surefire .version>3.5.2</surefire .version>
6464 <fabric8-client .version>7.0.0</fabric8-client .version>
Original file line number Diff line number Diff line change 22
33import org .springframework .boot .autoconfigure .condition .ConditionalOnBean ;
44import org .springframework .context .annotation .Bean ;
5- import org .springframework .context .annotation .ComponentScan ;
65import org .springframework .context .annotation .Configuration ;
6+ import org .springframework .context .annotation .Import ;
77
88import io .javaoperatorsdk .operator .Operator ;
99
1010@ Configuration (proxyBeanMethods = false )
1111@ ConditionalOnBean (Operator .class )
12- @ ComponentScan ( "io.javaoperatorsdk.operator.springboot.starter" )
12+ @ Import ( OperatorAutoConfiguration . class )
1313public class OperatorHealthIndicatorAutoConfiguration {
1414
1515 @ Bean
Original file line number Diff line number Diff line change 1010import org .springframework .beans .factory .config .BeanPostProcessor ;
1111import org .springframework .boot .test .context .SpringBootTest ;
1212import org .springframework .boot .test .context .TestConfiguration ;
13- import org .springframework .boot .test .mock .mockito .MockBean ;
14- import org .springframework .boot .test .mock .mockito .SpyBean ;
1513import org .springframework .context .annotation .Bean ;
14+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
15+ import org .springframework .test .context .bean .override .mockito .MockitoSpyBean ;
1616
1717import io .fabric8 .kubernetes .client .KubernetesClient ;
1818import io .javaoperatorsdk .operator .Operator ;
@@ -41,7 +41,7 @@ public class AutoConfigurationTest {
4141 @ Autowired
4242 private OperatorConfigurationProperties config ;
4343
44- @ SpyBean
44+ @ MockitoSpyBean
4545 private Operator operator ;
4646
4747 @ Autowired
@@ -53,7 +53,7 @@ public class AutoConfigurationTest {
5353 @ Autowired
5454 private Consumer <ConfigurationServiceOverrider > compositeConfigurationServiceOverrider ;
5555
56- @ MockBean
56+ @ MockitoBean
5757 private Cloner cloner ;
5858
5959 @ Test
You can’t perform that action at this time.
0 commit comments