@Test(groups="Integration") public void testExecEchoHello() { ProcessTaskWrapper<Integer> t = submit(SystemTasks.exec("sleep 1 ; echo hello world")); Assert.assertFalse(t.isDone()); Assert.assertEquals(t.get(), (Integer)0); Assert.assertEquals(t.getTask().getUnchecked(), (Integer)0); Assert.assertEquals(t.getStdout().trim(), "hello world"); }
public static ProcessTaskFactory<Integer> exec(String ...commands) { return new ConcreteSystemProcessTaskFactory<Integer>(commands); }
SystemTasks { public static ProcessTaskFactory<Integer> exec(String ...commands) { return new ConcreteSystemProcessTaskFactory<Integer>(commands); } }
SystemTasks { public static ProcessTaskFactory<Integer> exec(String ...commands) { return new ConcreteSystemProcessTaskFactory<Integer>(commands); }  }
SystemTasks { public static ProcessTaskFactory<Integer> exec(String ...commands) { return new ConcreteSystemProcessTaskFactory<Integer>(commands); }  static ProcessTaskFactory<Integer> exec(String ...commands); }
SystemTasks { public static ProcessTaskFactory<Integer> exec(String ...commands) { return new ConcreteSystemProcessTaskFactory<Integer>(commands); }  static ProcessTaskFactory<Integer> exec(String ...commands);  }