Rename MvcAsyncTask to WebAsyncTask

The name MvcAsyncTask is misleading because the class is part of Spring
Web as apposed to Spring MVC. This is also inconsistent with the other
async classes which use Web instead of Mvc.

This commit changes MvcAsyncTask to WebAsyncTask making it more
consistent with the jar it is found in and the other async classes.

Issue: SPR-10051
This commit is contained in:
Rob Winch
2012-11-28 10:45:45 -06:00
committed by Rossen Stoyanchev
parent ce7fa8a98e
commit 157a1d6ee2
8 changed files with 36 additions and 36 deletions

View File

@@ -244,7 +244,7 @@ public class WebAsyncManagerTests {
replay(this.asyncWebRequest);
@SuppressWarnings("unchecked")
MvcAsyncTask<Object> asyncTask = new MvcAsyncTask<Object>(1000L, executor, createMock(Callable.class));
WebAsyncTask<Object> asyncTask = new WebAsyncTask<Object>(1000L, executor, createMock(Callable.class));
this.asyncManager.startCallableProcessing(asyncTask);
verify(executor, this.asyncWebRequest);

View File

@@ -101,14 +101,14 @@ public class WebAsyncManagerTimeoutTests {
public void startCallableProcessingTimeoutAndResumeThroughCallback() throws Exception {
StubCallable callable = new StubCallable();
MvcAsyncTask<Object> mvcAsyncTask = new MvcAsyncTask<Object>(callable);
mvcAsyncTask.onTimeout(new Callable<Object>() {
WebAsyncTask<Object> webAsyncTask = new WebAsyncTask<Object>(callable);
webAsyncTask.onTimeout(new Callable<Object>() {
public Object call() throws Exception {
return 7;
}
});
this.asyncManager.startCallableProcessing(mvcAsyncTask);
this.asyncManager.startCallableProcessing(webAsyncTask);
this.asyncWebRequest.onTimeout(ASYNC_EVENT);