mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-05 22:49:02 +00:00
MockRestServiceServerBuilder can be re-used
Issue: SPR-14306
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user