From b4cd4f4c435c19bedc34e3e327801cdffe3406bd Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 28 Jun 2018 10:51:58 +0100 Subject: [PATCH] Stop mocking class that is final in latest Framework 5.1 snapshots --- .../test/web/client/RootUriRequestExpectationManagerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/RootUriRequestExpectationManagerTests.java b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/RootUriRequestExpectationManagerTests.java index d4bc3151429..e850d8312f0 100644 --- a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/RootUriRequestExpectationManagerTests.java +++ b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/RootUriRequestExpectationManagerTests.java @@ -86,7 +86,7 @@ public class RootUriRequestExpectationManagerTests { @Test public void expectRequestShouldDelegateToExpectationManager() { - ExpectedCount count = mock(ExpectedCount.class); + ExpectedCount count = ExpectedCount.once(); RequestMatcher requestMatcher = mock(RequestMatcher.class); this.manager.expectRequest(count, requestMatcher); verify(this.delegate).expectRequest(count, requestMatcher);