poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1746275 - /poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java
Date Tue, 31 May 2016 13:52:16 GMT
Author: centic
Date: Tue May 31 13:52:16 2016
New Revision: 1746275

URL: http://svn.apache.org/viewvc?rev=1746275&view=rev
Log:
Change logger.log to System.out to print out one line for each file that is handled in the
test, otherwise it is sometimes impossible to see where the test stopped (e.g. on timeout),
enabling POILogger leads to 400MB logs, which is usually too much to handle...

Modified:
    poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java

Modified: poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java?rev=1746275&r1=1746274&r2=1746275&view=diff
==============================================================================
--- poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java (original)
+++ poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java Tue May 31 13:52:16 2016
@@ -17,25 +17,8 @@
 package org.apache.poi;
 
 
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-
-import java.io.BufferedInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.Set;
-
 import org.apache.poi.hwpf.OldWordFileFormatException;
 import org.apache.poi.stress.*;
-import org.apache.poi.util.POILogFactory;
-import org.apache.poi.util.POILogger;
 import org.apache.tools.ant.DirectoryScanner;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -43,6 +26,15 @@ import org.junit.runners.Parameterized;
 import org.junit.runners.Parameterized.Parameter;
 import org.junit.runners.Parameterized.Parameters;
 
+import java.io.BufferedInputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.InputStream;
+import java.util.*;
+
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+
 /**
  *  This is an integration test which performs various actions on all stored test-files and
tries
  *  to reveal problems which are introduced, but not covered (yet) by unit tests. 
@@ -69,8 +61,6 @@ import org.junit.runners.Parameterized.P
  */
 @RunWith(Parameterized.class)
 public class TestAllFiles {
-    private final static POILogger logger = POILogFactory.getLogger(TestAllFiles.class);
-
     private static final File ROOT_DIR = new File("test-data");
 
     static final String[] SCAN_EXCLUDES = new String[] { "**/.svn/**", "lost+found" };
@@ -329,7 +319,7 @@ public class TestAllFiles {
 
     @Test
     public void testAllFiles() throws Exception {
-        logger.log(POILogger.INFO, "Reading " + file + " with " + handler.getClass());
+        System.out.println("Reading " + file + " with " + handler.getClass());
         assertNotNull("Unknown file extension for file: " + file + ": " + getExtension(file),
handler);
         File inputFile = new File(ROOT_DIR, file);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message