MockRestServiceServerBuilder can be re-used

Issue: SPR-14306
This commit is contained in:
Rossen Stoyanchev
2016-05-26 09:48:16 -04:00
parent a1851845ad
commit f4ab6d8d52
4 changed files with 91 additions and 30 deletions

View File

@@ -5095,7 +5095,7 @@ means requests are allowed to come in any order. Here is an example:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
server = MockRestServiceServer.bindTo(restTemplate).ignoreExpectOrder().build();
server = MockRestServiceServer.bindTo(restTemplate).ignoreExpectOrder(true).build();
----
Even with unordered requests by default each request is allowed to execute once only.