@Test public void testExecCommandDual(){ List<String> formatStrings = Arrays.asList("abc\\aaa", "12345\\"); List<String> unformatStrings = Arrays.asList("xyz\\bbb", "67890\\"); List<String> result = new ExecCommand(formatStrings, unformatStrings).getCommandFragments(); List<String> expected = Arrays.asList("abc/aaa", "12345/", "xyz\\bbb", "67890\\"); assertEquals(result, expected); }
public List<String> getCommandFragments() { return commandFragments; }
ExecCommand implements Serializable { public List<String> getCommandFragments() { return commandFragments; } }
ExecCommand implements Serializable { public List<String> getCommandFragments() { return commandFragments; } ExecCommand(final String... theCommandFragments);  ExecCommand(final List<String> theCommandFragments);  ExecCommand(final List<String> theCommandFragmentsReplace, final List<String> theCommandFragmentsNotReplace); }
ExecCommand implements Serializable { public List<String> getCommandFragments() { return commandFragments; } ExecCommand(final String... theCommandFragments);  ExecCommand(final List<String> theCommandFragments);  ExecCommand(final List<String> theCommandFragmentsReplace, final List<String> theCommandFragmentsNotReplace); List<String> getCommandFragments(); String toCommandString(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); boolean getRunInShell(); }
ExecCommand implements Serializable { public List<String> getCommandFragments() { return commandFragments; } ExecCommand(final String... theCommandFragments);  ExecCommand(final List<String> theCommandFragments);  ExecCommand(final List<String> theCommandFragmentsReplace, final List<String> theCommandFragmentsNotReplace); List<String> getCommandFragments(); String toCommandString(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); boolean getRunInShell();  }