@Test public void testManagedTask_Runnable_ManagedTaskListener() { RunnableImpl task = new RunnableImpl(); ManagedTaskListenerImpl taskListener = new ManagedTaskListenerImpl(); Runnable wrapped = ManagedExecutors.managedTask(task, taskListener); ManagedTask managedTask = (ManagedTask) wrapped; assertTrue(taskListener == managedTask.getManagedTaskListener()); wrapped.run(); assertTrue(task.ran); }
public static Runnable managedTask(Runnable task, ManagedTaskListener taskListener) throws IllegalArgumentException { return managedTask(task, null, taskListener); }
ManagedExecutors { public static Runnable managedTask(Runnable task, ManagedTaskListener taskListener) throws IllegalArgumentException { return managedTask(task, null, taskListener); } }
ManagedExecutors { public static Runnable managedTask(Runnable task, ManagedTaskListener taskListener) throws IllegalArgumentException { return managedTask(task, null, taskListener); } private  ManagedExecutors(); }
ManagedExecutors { public static Runnable managedTask(Runnable task, ManagedTaskListener taskListener) throws IllegalArgumentException { return managedTask(task, null, taskListener); } private  ManagedExecutors(); static boolean isCurrentThreadShutdown(); static Runnable managedTask(Runnable task, ManagedTaskListener taskListener); static Runnable managedTask(Runnable task, Map<String, String> executionProperties, ManagedTaskListener taskListener); static Callable<V> managedTask(Callable<V> task, ManagedTaskListener taskListener); static Callable<V> managedTask(Callable<V> task, Map<String, String> executionProperties, ManagedTaskListener taskListener); }
ManagedExecutors { public static Runnable managedTask(Runnable task, ManagedTaskListener taskListener) throws IllegalArgumentException { return managedTask(task, null, taskListener); } private  ManagedExecutors(); static boolean isCurrentThreadShutdown(); static Runnable managedTask(Runnable task, ManagedTaskListener taskListener); static Runnable managedTask(Runnable task, Map<String, String> executionProperties, ManagedTaskListener taskListener); static Callable<V> managedTask(Callable<V> task, ManagedTaskListener taskListener); static Callable<V> managedTask(Callable<V> task, Map<String, String> executionProperties, ManagedTaskListener taskListener);  }