diff --git a/src/test/java/org/apache/maven/shared/utils/cli/shell/BourneShellTest.java b/src/test/java/org/apache/maven/shared/utils/cli/shell/BourneShellTest.java index 199f36e4..8032ae2d 100644 --- a/src/test/java/org/apache/maven/shared/utils/cli/shell/BourneShellTest.java +++ b/src/test/java/org/apache/maven/shared/utils/cli/shell/BourneShellTest.java @@ -81,7 +81,6 @@ public void testPreserveSingleQuotesOnArgument() List shellCommandLine = sh.getShellCommandLine("\"some arg with spaces\""); String cli = StringUtils.join( shellCommandLine.iterator(), " " ); - System.out.println( cli ); assertTrue( cli.endsWith( "'\"some arg with spaces\"'" ) ); } @@ -95,7 +94,6 @@ public void testAddSingleQuotesOnArgumentWithSpaces() List shellCommandLine = sh.getShellCommandLine("some arg with spaces"); String cli = StringUtils.join( shellCommandLine.iterator(), " " ); - System.out.println( cli ); assertTrue( cli.endsWith("'some arg with spaces'")); } @@ -114,8 +112,6 @@ public void testAddArgumentWithSingleQuote() public void testArgumentsWithSemicolon() { - System.out.println( "---- semi colon tests ----" ); - Shell sh = newShell(); sh.setWorkingDirectory( "/usr/bin" ); @@ -124,7 +120,6 @@ public void testArgumentsWithSemicolon() List shellCommandLine = sh.getShellCommandLine(";some&argwithunix$chars"); String cli = StringUtils.join( shellCommandLine.iterator(), " " ); - System.out.println( cli ); assertTrue( cli.endsWith( "';some&argwithunix$chars'" ) ); Commandline commandline = new Commandline( newShell() ); @@ -134,7 +129,6 @@ public void testArgumentsWithSemicolon() commandline.createArg().setValue( ";password" ); List lines = commandline.getShell().getShellCommandLine( commandline.getArguments() ); - System.out.println( lines ); assertEquals( "/bin/sh", lines.get( 0 ) ); assertEquals( "-c", lines.get( 1 ) ); @@ -146,7 +140,6 @@ public void testArgumentsWithSemicolon() commandline.createArg().setValue( "--password" ); commandline.createArg().setValue( ";password" ); lines = commandline.getShell().getShellCommandLine( commandline.getArguments() ); - System.out.println( lines ); assertEquals( "/bin/sh", lines.get( 0) ); assertEquals( "-c", lines.get( 1 ) ); @@ -157,7 +150,6 @@ public void testArgumentsWithSemicolon() commandline.createArg().setValue( "--password" ); commandline.createArg().setValue( ";password" ); lines = commandline.getShell().getShellCommandLine( commandline.getArguments() ); - System.out.println( lines ); assertEquals( "cmd.exe", lines.get( 0 ) ); assertEquals( "/X", lines.get( 1 ) ); @@ -195,7 +187,6 @@ public void testBourneShellQuotingCharacters() commandline.createArg().setValue( "#" ); List lines = commandline.getShell().getShellCommandLine( commandline.getArguments() ); - System.out.println( lines ); assertEquals( "/bin/sh", lines.get( 0 ) ); assertEquals( "-c", lines.get( 1 ) );