Skip to content

Commit 2a15b5a

Browse files
committed
Enable asyncSupported flag in Spring Test MVC
Also remove Servlet 3 bridge classes no longer needed since Spring Framework 4 compiles with the Servlet 3 API. That means applications may need to run tests with the Servlet 3 API jar although technically they don't have to run with that in production.
1 parent 9af1984 commit 2a15b5a

File tree

5 files changed

+18
-368
lines changed

5 files changed

+18
-368
lines changed

spring-test-mvc/src/main/java/org/springframework/test/web/servlet/request/MockAsyncContext.java

Lines changed: 0 additions & 145 deletions
This file was deleted.

spring-test-mvc/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ public final MockHttpServletRequest buildRequest(ServletContext servletContext)
653653
Assert.notNull(request, "Post-processor [" + postProcessor.getClass().getName() + "] returned null");
654654
}
655655

656+
request.setAsyncSupported(true);
657+
656658
return request;
657659
}
658660

spring-test-mvc/src/main/java/org/springframework/test/web/servlet/request/Servlet3MockHttpServletRequest.java

Lines changed: 0 additions & 114 deletions
This file was deleted.

spring-test-mvc/src/main/java/org/springframework/test/web/servlet/request/Servlet3MockMultipartHttpServletRequest.java

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)