Skip to content

Commit ad98710

Browse files
committed
Test doesn't need to write to the console
Reduce vertical space
1 parent b566668 commit ad98710

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/test/java/org/apache/commons/exec/CommandLineTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,14 +453,11 @@ void testToString() throws Exception {
453453
*/
454454
@Test
455455
void testToStringTroubleshooting() throws Exception {
456-
System.out.println("testToStringTroubleshooting");
457456
// On HP-UX quotes handling leads to errors,
458457
// also usage of quotes isn't mandatory on other platforms too
459458
// so it probably should work correctly either way.
460459
final CommandLine cmd1 = new CommandLine("sh").addArgument("-c").addArgument("echo 1", false);
461460
final CommandLine cmd2 = new CommandLine("sh").addArgument("-c").addArgument("echo").addArgument("1");
462-
System.out.println("cmd1: " + cmd1.toString());
463-
System.out.println("cmd2: " + cmd2.toString());
464461
assertTrue(!cmd1.toString().equals(cmd2.toString()), "toString() is useful for troubleshooting");
465462
}
466463

0 commit comments

Comments
 (0)