@Test public void testGetStderrPath() { assertEquals(stderrFile, execShellCliParser.getStderrPath()); }
public String getStderrPath() { String[] cliStringParts = cliString.split(" "); StringBuilder sb = new StringBuilder(); for (String part : cliStringParts) { if (part.startsWith("2>")) { sb.append(part.replace("2>", "")); sb.append(' '); } } return sb.toString().trim(); }
ExecShellCliParser { public String getStderrPath() { String[] cliStringParts = cliString.split(" "); StringBuilder sb = new StringBuilder(); for (String part : cliStringParts) { if (part.startsWith("2>")) { sb.append(part.replace("2>", "")); sb.append(' '); } } return sb.toString().trim(); } }
ExecShellCliParser { public String getStderrPath() { String[] cliStringParts = cliString.split(" "); StringBuilder sb = new StringBuilder(); for (String part : cliStringParts) { if (part.startsWith("2>")) { sb.append(part.replace("2>", "")); sb.append(' '); } } return sb.toString().trim(); } ExecShellCliParser(String cliString); }
ExecShellCliParser { public String getStderrPath() { String[] cliStringParts = cliString.split(" "); StringBuilder sb = new StringBuilder(); for (String part : cliStringParts) { if (part.startsWith("2>")) { sb.append(part.replace("2>", "")); sb.append(' '); } } return sb.toString().trim(); } ExecShellCliParser(String cliString); String getCommand(); String getStdoutPath(); String getStderrPath(); int runCommand(); String getOutput(InputStream inputStream); void writeOutputToFile(String output, File outputFile); }
ExecShellCliParser { public String getStderrPath() { String[] cliStringParts = cliString.split(" "); StringBuilder sb = new StringBuilder(); for (String part : cliStringParts) { if (part.startsWith("2>")) { sb.append(part.replace("2>", "")); sb.append(' '); } } return sb.toString().trim(); } ExecShellCliParser(String cliString); String getCommand(); String getStdoutPath(); String getStderrPath(); int runCommand(); String getOutput(InputStream inputStream); void writeOutputToFile(String output, File outputFile);  }