@@ -136,7 +136,10 @@ public static MockRestServiceServerBuilder bindTo(RestTemplate restTemplate) {
136
136
* Return a builder for a {@code MockRestServiceServer} that should be used
137
137
* to reply to the given {@code AsyncRestTemplate}.
138
138
* @since 4.3
139
+ * @deprecated see deprecation notice on
140
+ * {@link org.springframework.web.client.AsyncRestTemplate} itself
139
141
*/
142
+ @ Deprecated
140
143
public static MockRestServiceServerBuilder bindTo (org .springframework .web .client .AsyncRestTemplate asyncRestTemplate ) {
141
144
return new DefaultBuilder (asyncRestTemplate );
142
145
}
@@ -165,7 +168,10 @@ public static MockRestServiceServer createServer(RestTemplate restTemplate) {
165
168
* A shortcut for {@code bindTo(asyncRestTemplate).build()}.
166
169
* @param asyncRestTemplate the AsyncRestTemplate to set up for mock testing
167
170
* @return the created mock server
171
+ * @deprecated see deprecation notice on
172
+ * {@link org.springframework.web.client.AsyncRestTemplate} itself
168
173
*/
174
+ @ Deprecated
169
175
public static MockRestServiceServer createServer (org .springframework .web .client .AsyncRestTemplate asyncRestTemplate ) {
170
176
return bindTo (asyncRestTemplate ).build ();
171
177
}
@@ -188,8 +194,9 @@ public interface MockRestServiceServerBuilder {
188
194
/**
189
195
* Whether to allow expected requests to be executed in any order not
190
196
* necessarily matching the order of declaration.
191
- * <p>When set to "true" this is effectively a shortcut for:<br>
197
+ * <p>Effectively a shortcut for:<br>
192
198
* {@code builder.build(new UnorderedRequestExpectationManager)}.
199
+ * <p>By default this is set to {@code false}
193
200
* @param ignoreExpectOrder whether to ignore the order of expectations
194
201
*/
195
202
MockRestServiceServerBuilder ignoreExpectOrder (boolean ignoreExpectOrder );
0 commit comments