File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
spring-test/src/main/java/org/springframework/test/web/servlet/request Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2014 the original author or authors.
2
+ * Copyright 2002-2015 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -221,6 +221,10 @@ public static MockMultipartHttpServletRequestBuilder fileUpload(URI uri) {
221
221
* @param mvcResult the result from the request that started async processing
222
222
*/
223
223
public static RequestBuilder asyncDispatch (final MvcResult mvcResult ) {
224
+
225
+ // There must be an async result before dispatching
226
+ mvcResult .getAsyncResult ();
227
+
224
228
return new RequestBuilder () {
225
229
@ Override
226
230
public MockHttpServletRequest buildRequest (ServletContext servletContext ) {
You can’t perform that action at this time.
0 commit comments