SubWorkflow extends WorkflowSystemTask { @Override public boolean isAsync() { return true; } @VisibleForTesting  SubWorkflow(); @Inject  SubWorkflow(ObjectMapper objectMapper); @SuppressWarnings("unchecked") @Override void start(Workflow workflow, Task task, WorkflowExecutor provider); @Override boolean execute(Workflow workflow, Task task, WorkflowExecutor provider); @Override void cancel(Workflow workflow, Task task, WorkflowExecutor provider); @Override boolean isAsync(); @Override boolean isAsyncComplete(Task task); static final String NAME; }
@Test public void testIsAsync() { SubWorkflow subWorkflow = new SubWorkflow(); assertTrue(subWorkflow.isAsync()); }