From 7a2fc9e636b87213118869bd9d86fc8c4f930dff Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 21 Jun 2023 12:27:56 -0700 Subject: [PATCH] Fix checkstyle violation See gh-35914 --- .../client/ClientHttpConnectorFactoryConfigurationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/function/client/ClientHttpConnectorFactoryConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/function/client/ClientHttpConnectorFactoryConfigurationTests.java index 99f99ce617..79991a079b 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/function/client/ClientHttpConnectorFactoryConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/function/client/ClientHttpConnectorFactoryConfigurationTests.java @@ -37,9 +37,9 @@ import org.springframework.http.client.reactive.JettyResourceFactory; import org.springframework.test.util.ReflectionTestUtils; import static org.assertj.core.api.Assertions.assertThat; +import static org.mockito.BDDMockito.then; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.spy; -import static org.mockito.Mockito.verify; /** * Tests for {@link ClientHttpConnectorFactoryConfiguration}. @@ -95,7 +95,7 @@ class ClientHttpConnectorFactoryConfigurationTests { .run((context) -> { context.getBean(ReactorClientHttpConnectorFactory.class).createClientHttpConnector(sslBundle); assertThat(CustomHttpClientMapper.called).isTrue(); - verify(sslBundle).getManagers(); + then(sslBundle).should().getManagers(); }); }