From 5792042d5d9fb76a06eee48ae07a7326e7bc16a4 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Thu, 19 Apr 2018 14:43:09 -0700 Subject: [PATCH] Fix verify statements in tests --- .../servlet/server/AbstractServletWebServerFactoryTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java index 1daa28f4d5..dc757b2adc 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java @@ -118,6 +118,7 @@ import static org.hamcrest.CoreMatchers.notNullValue; import static org.junit.Assert.fail; import static org.mockito.ArgumentMatchers.any; import static org.mockito.BDDMockito.given; +import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.inOrder; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; @@ -619,8 +620,8 @@ public abstract class AbstractServletWebServerFactoryTests { httpClient); assertThat(getResponse(getLocalUrl("https", "/test.txt"), requestFactory)) .isEqualTo("test"); - verify(sslStoreProvider).getKeyStore(); - verify(sslStoreProvider).getTrustStore(); + verify(sslStoreProvider, atLeastOnce()).getKeyStore(); + verify(sslStoreProvider, atLeastOnce()).getTrustStore(); } @Test