diff --git a/spring-test/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java b/spring-test/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java index 4d9813bb3c..ae7ab5cb6d 100644 --- a/spring-test/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java +++ b/spring-test/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java @@ -216,7 +216,7 @@ public class MockRestServiceServer { this.requestIterator = MockRestServiceServer.this.expectedRequests.iterator(); } if (!this.requestIterator.hasNext()) { - throw new AssertionError("No further requests expected"); + throw new AssertionError("No further requests expected: HTTP " + httpMethod + " " + uri); } RequestMatcherClientHttpRequest request = this.requestIterator.next();