You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/11/25 12:28:38 UTC
(commons-exec) 04/04: Test doesn't need to write to the console
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-exec.git
commit ad9871030ff931572ec4bc554e8e25ccef642e8b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Nov 25 07:25:45 2025 -0500
Test doesn't need to write to the console
Reduce vertical space
---
src/test/java/org/apache/commons/exec/CommandLineTest.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/test/java/org/apache/commons/exec/CommandLineTest.java b/src/test/java/org/apache/commons/exec/CommandLineTest.java
index d721593d..95d99124 100644
--- a/src/test/java/org/apache/commons/exec/CommandLineTest.java
+++ b/src/test/java/org/apache/commons/exec/CommandLineTest.java
@@ -453,14 +453,11 @@ class CommandLineTest {
*/
@Test
void testToStringTroubleshooting() throws Exception {
- System.out.println("testToStringTroubleshooting");
// On HP-UX quotes handling leads to errors,
// also usage of quotes isn't mandatory on other platforms too
// so it probably should work correctly either way.
final CommandLine cmd1 = new CommandLine("sh").addArgument("-c").addArgument("echo 1", false);
final CommandLine cmd2 = new CommandLine("sh").addArgument("-c").addArgument("echo").addArgument("1");
- System.out.println("cmd1: " + cmd1.toString());
- System.out.println("cmd2: " + cmd2.toString());
assertTrue(!cmd1.toString().equals(cmd2.toString()), "toString() is useful for troubleshooting");
}