Oops, add uncommitted change for last commit.

This commit is contained in:
Rossen Stoyanchev
2018-10-09 12:23:25 -04:00
parent f61f6f2ef0
commit 547b841172

View File

@@ -79,10 +79,9 @@ final class TestDispatcherServlet extends DispatcherServlet {
MockHttpServletRequest mockRequest = WebUtils.getNativeRequest(request, MockHttpServletRequest.class);
Assert.notNull(mockRequest, "Expected MockHttpServletRequest");
asyncContext = (MockAsyncContext) mockRequest.getAsyncContext();
Assert.notNull(asyncContext, () ->
"Outer request wrapper " + request.getClass().getName() + " has an AsyncContext," +
"but it is not a MockAsyncContext, while the nested " +
mockRequest.getClass().getName() + " does not have an AsyncContext at all.");
Assert.notNull(asyncContext, "Outer request wrapper " + request.getClass().getName() +
" has an AsyncContext,but it is not a MockAsyncContext, while the nested " +
mockRequest.getClass().getName() + " does not have an AsyncContext at all.");
}
final CountDownLatch dispatchLatch = new CountDownLatch(1);