@Test public void executeCmdTest() throws InterruptedException { String results = externalProcessRunner.executeCmd("echo \"Hello\""); assertTrue(results.contains("Hello")); }
@Override public String executeCmd(String cmd) { return executeCmd(cmd, true); }
ExternalProcessRunnerImpl implements IExternalProcessRunner { @Override public String executeCmd(String cmd) { return executeCmd(cmd, true); } }
ExternalProcessRunnerImpl implements IExternalProcessRunner { @Override public String executeCmd(String cmd) { return executeCmd(cmd, true); } ExternalProcessRunnerImpl(); }
ExternalProcessRunnerImpl implements IExternalProcessRunner { @Override public String executeCmd(String cmd) { return executeCmd(cmd, true); } ExternalProcessRunnerImpl(); @Autowired void setProcessFactory(IProcessFactory factory); @Autowired void setThreadExecutor(IThreadExecutor threadExecuter); void setProcessWorker(ProcessWorker worker); @Override String executeCmd(String cmd); @Override String executeCmd(String cmd, boolean redirectErrorStream); @Override String executeCmdRunner(String cmd, boolean earlyExit, String msg); @Override String executeCmdRunner(String cmd, boolean earlyExit, String msg, boolean redirectErrorStream); @Override String runCmd(String[] command); @Override String runCmdWithTimeout(String[] command, long timeout); @Override String runGetString(String command); @Override ByteArrayOutputStream run(String command); }
ExternalProcessRunnerImpl implements IExternalProcessRunner { @Override public String executeCmd(String cmd) { return executeCmd(cmd, true); } ExternalProcessRunnerImpl(); @Autowired void setProcessFactory(IProcessFactory factory); @Autowired void setThreadExecutor(IThreadExecutor threadExecuter); void setProcessWorker(ProcessWorker worker); @Override String executeCmd(String cmd); @Override String executeCmd(String cmd, boolean redirectErrorStream); @Override String executeCmdRunner(String cmd, boolean earlyExit, String msg); @Override String executeCmdRunner(String cmd, boolean earlyExit, String msg, boolean redirectErrorStream); @Override String runCmd(String[] command); @Override String runCmdWithTimeout(String[] command, long timeout); @Override String runGetString(String command); @Override ByteArrayOutputStream run(String command);  }