@Test(enabled=false) public void testLSExec() throws Exception { ProcessHelper processHelper = new ProcessHelper(); ProcessOutput processOutput = processHelper.getOutput("ls", null, null); Assert.assertNotEquals(0, processOutput.getOutputLines().size()); }
public ProcessOutput getOutput(String[] cmdarray, String[] envp, File dir) throws IOException { return getProcessOutput(Runtime.getRuntime().exec(cmdarray, envp, dir)); }
ProcessHelper { public ProcessOutput getOutput(String[] cmdarray, String[] envp, File dir) throws IOException { return getProcessOutput(Runtime.getRuntime().exec(cmdarray, envp, dir)); } }
ProcessHelper { public ProcessOutput getOutput(String[] cmdarray, String[] envp, File dir) throws IOException { return getProcessOutput(Runtime.getRuntime().exec(cmdarray, envp, dir)); } ProcessHelper(); }
ProcessHelper { public ProcessOutput getOutput(String[] cmdarray, String[] envp, File dir) throws IOException { return getProcessOutput(Runtime.getRuntime().exec(cmdarray, envp, dir)); } ProcessHelper(); ProcessOutput getOutput(String[] cmdarray, String[] envp, File dir); ProcessOutput getOutput(String cmd, String[] envp, File dir); void setStreamGobblerFactory(StreamGobblerFactory streamGobblerFactory); }
ProcessHelper { public ProcessOutput getOutput(String[] cmdarray, String[] envp, File dir) throws IOException { return getProcessOutput(Runtime.getRuntime().exec(cmdarray, envp, dir)); } ProcessHelper(); ProcessOutput getOutput(String[] cmdarray, String[] envp, File dir); ProcessOutput getOutput(String cmd, String[] envp, File dir); void setStreamGobblerFactory(StreamGobblerFactory streamGobblerFactory);  }