Improve exception message

Issue: SPR-12230
master
Rossen Stoyanchev 10 years ago
parent e9dee82a8d
commit 7f4bf41c23
  1. 2
      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(); this.requestIterator = MockRestServiceServer.this.expectedRequests.iterator();
} }
if (!this.requestIterator.hasNext()) { 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(); RequestMatcherClientHttpRequest request = this.requestIterator.next();

Loading…
Cancel
Save