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 2022/05/05 20:19:51 UTC

[commons-compress] 02/05: No console output.

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-compress.git

commit cce64a0eb53d1a9d8803e0c87905aa4f5ea7fac5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu May 5 16:13:28 2022 -0400

    No console output.
---
 .../compress/archivers/zip/ZipMemoryFileSystemTest.java       | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/ZipMemoryFileSystemTest.java b/src/test/java/org/apache/commons/compress/archivers/zip/ZipMemoryFileSystemTest.java
index c7f3eaa4..7f1d9060 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/ZipMemoryFileSystemTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/ZipMemoryFileSystemTest.java
@@ -52,6 +52,11 @@ import static org.junit.Assert.*;
 import static org.junit.Assert.assertArrayEquals;
 
 public class ZipMemoryFileSystemTest {
+    
+    static void println(String x) {
+        // System.out.println(x);
+    }
+    
     private Path dir;
 
     @BeforeEach
@@ -63,7 +68,7 @@ public class ZipMemoryFileSystemTest {
     public void tearDown() throws IOException {
         try (Stream<Path> walk = Files.walk(dir)) {
             walk.sorted(Comparator.reverseOrder())
-                    .peek(path -> System.out.println("Deleting: " + path.toAbsolutePath()))
+                    .peek(path -> println("Deleting: " + path.toAbsolutePath()))
                     .forEach(path -> {
                         try {
                             Files.deleteIfExists(path);
@@ -114,7 +119,7 @@ public class ZipMemoryFileSystemTest {
                 try (Stream<Path> paths = Files.walk(dir, 1)) {
                     splitZips = paths
                             .filter(Files::isRegularFile)
-                            .peek(path -> System.out.println("Found: " + path.toAbsolutePath()))
+                            .peek(path -> println("Found: " + path.toAbsolutePath()))
                             .collect(Collectors.toList());
                 }
                 assertEquals(splitZips.size(), 2);
@@ -278,7 +283,7 @@ public class ZipMemoryFileSystemTest {
                 try (Stream<Path> paths = Files.walk(fileSystem.getPath("."), 1)) {
                     splitZips = paths
                             .filter(Files::isRegularFile)
-                            .peek(path -> System.out.println("Found: " + path.toAbsolutePath()))
+                            .peek(path -> println("Found: " + path.toAbsolutePath()))
                             .collect(Collectors.toList());
                 }
                 assertEquals(splitZips.size(), 2);