mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Improve exception message
Issue: SPR-12230
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user