Skip to content

Commit 7f4bf41

Browse files
committed
Improve exception message
Issue: SPR-12230
1 parent e9dee82 commit 7f4bf41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-test/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private RequestMatcherClientHttpRequest createRequestInternal(URI uri, HttpMetho
216216
this.requestIterator = MockRestServiceServer.this.expectedRequests.iterator();
217217
}
218218
if (!this.requestIterator.hasNext()) {
219-
throw new AssertionError("No further requests expected");
219+
throw new AssertionError("No further requests expected: HTTP " + httpMethod + " " + uri);
220220
}
221221

222222
RequestMatcherClientHttpRequest request = this.requestIterator.next();

0 commit comments

Comments
 (0)