Parameterize AsyncTask type

This commit is contained in:
Rossen Stoyanchev
2012-10-15 10:30:49 -04:00
parent e98dc50f99
commit dbcbdace9e
4 changed files with 11 additions and 10 deletions

View File

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