aboutsummaryrefslogtreecommitdiffstats
path: root/src/integrationtest/org/apache/poi
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-05-31 13:52:16 +0000
committerDominik Stadler <centic@apache.org>2016-05-31 13:52:16 +0000
commitb4ba6a64a153657631d2edd2b13ac6847ffa49e8 (patch)
tree73abcc3e2e6fe8d5da5ca49b43d1ebcc22fce514 /src/integrationtest/org/apache/poi
parent82db40d532bd9e2105c88f299a4b01dd7bf5af79 (diff)
downloadpoi-b4ba6a64a153657631d2edd2b13ac6847ffa49e8.tar.gz
poi-b4ba6a64a153657631d2edd2b13ac6847ffa49e8.zip
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...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1746275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest/org/apache/poi')
-rw-r--r--src/integrationtest/org/apache/poi/TestAllFiles.java30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/integrationtest/org/apache/poi/TestAllFiles.java b/src/integrationtest/org/apache/poi/TestAllFiles.java
index fc4a6f56e0..29e076b2d0 100644
--- a/src/integrationtest/org/apache/poi/TestAllFiles.java
+++ b/src/integrationtest/org/apache/poi/TestAllFiles.java
@@ -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.Parameters;
*/
@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);