Checkstyle corrections

This commit is contained in:
Ilkka Seppala
2015-12-29 21:34:27 +02:00
parent b369812511
commit 8b020837ea
20 changed files with 102 additions and 35 deletions

View File

@ -89,9 +89,9 @@ public class ThreadAsyncExecutorTest {
final Object result = new Object();
final Callable<Object> task = mock(Callable.class);
when(task.call()).thenAnswer(i -> {
Thread.sleep(1500);
return result;
});
Thread.sleep(1500);
return result;
});
final AsyncResult<Object> asyncResult = executor.startProcess(task);
assertNotNull(asyncResult);
@ -128,9 +128,9 @@ public class ThreadAsyncExecutorTest {
final Object result = new Object();
final Callable<Object> task = mock(Callable.class);
when(task.call()).thenAnswer(i -> {
Thread.sleep(1500);
return result;
});
Thread.sleep(1500);
return result;
});
final AsyncCallback<Object> callback = mock(AsyncCallback.class);
final AsyncResult<Object> asyncResult = executor.startProcess(task, callback);
@ -177,9 +177,9 @@ public class ThreadAsyncExecutorTest {
final Object result = new Object();
final Callable<Object> task = mock(Callable.class);
when(task.call()).thenAnswer(i -> {
Thread.sleep(1500);
return result;
});
Thread.sleep(1500);
return result;
});
final AsyncResult<Object> asyncResult = executor.startProcess(task);
assertNotNull(asyncResult);