@Test public void testManagedTask_Callable_ManagedTask_null_args() { final String RESULT = "result"; ManagedTaskListenerImpl TASK_LISTENER = new ManagedTaskListenerImpl(); Map<String, String> EXEC_PROPERTIES = new HashMap<String, String>(); EXEC_PROPERTIES.put("custom", "true"); final String TASK_DESCRIPTION = "task1 description"; ManagedTaskCallableImpl<String> task = new ManagedTaskCallableImpl(RESULT, TASK_DESCRIPTION, EXEC_PROPERTIES, TASK_LISTENER); Callable wrapped = ManagedExecutors.managedTask(task, null, null); ManagedTask managedTask = (ManagedTask) wrapped; assertTrue(TASK_LISTENER == managedTask.getManagedTaskListener()); assertEquals("true", managedTask.getExecutionProperties().get("custom")); }
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);  }