mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Add test case for SPR-15719
This commit is contained in:
+11
@@ -173,6 +173,17 @@ public class SimpleRequestExpectationManagerTests {
|
||||
this.manager.validateRequest(createRequest(GET, "/bar"));
|
||||
}
|
||||
|
||||
@Test // SPR-15719
|
||||
public void repeatedRequestsInSequentialOrder() throws Exception {
|
||||
this.manager.expectRequest(times(2), requestTo("/foo")).andExpect(method(GET)).andRespond(withSuccess());
|
||||
this.manager.expectRequest(times(2), requestTo("/bar")).andExpect(method(GET)).andRespond(withSuccess());
|
||||
|
||||
this.manager.validateRequest(createRequest(GET, "/foo"));
|
||||
this.manager.validateRequest(createRequest(GET, "/foo"));
|
||||
this.manager.validateRequest(createRequest(GET, "/bar"));
|
||||
this.manager.validateRequest(createRequest(GET, "/bar"));
|
||||
}
|
||||
|
||||
|
||||
private ClientHttpRequest createRequest(HttpMethod method, String url) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user