aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/dev
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2015-08-29 14:41:12 +0000
committerAndreas Beeker <kiwiwings@apache.org>2015-08-29 14:41:12 +0000
commitebdbe8b97ab92fd16bbd687b2b3662d252ef57d6 (patch)
tree90f352484ed4d1bdff0755c8c33f6bcce9d46ec2 /src/testcases/org/apache/poi/hssf/dev
parent7b5bd4a7f67ce324620153ead02d7bfc90348806 (diff)
downloadpoi-ebdbe8b97ab92fd16bbd687b2b3662d252ef57d6.tar.gz
poi-ebdbe8b97ab92fd16bbd687b2b3662d252ef57d6.zip
- reworked HexDump class - unified array dumps and usage of standard java calls for hex format
- fixed a few findbugs DM_DEFAULT_ENCODING issues - removed a few System.out/.err calls - instead the poilogger is used - closed a few left open resource instances git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700040 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/dev')
-rw-r--r--src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java b/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java
index a1d190ab58..776e278526 100644
--- a/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java
+++ b/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java
@@ -21,6 +21,11 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
+import org.apache.poi.POIDataSamples;
+import org.apache.poi.poifs.filesystem.NPOIFSFileSystem;
+import org.junit.Ignore;
+import org.junit.Test;
+
public class TestBiffViewer extends BaseXLSIteratingTest {
static {
// these are likely ok to fail
@@ -43,21 +48,21 @@ public class TestBiffViewer extends BaseXLSIteratingTest {
@Override
void runOneFile(File file) throws IOException {
- InputStream is = BiffViewer.getPOIFSInputStream(file);
+ NPOIFSFileSystem fs = new NPOIFSFileSystem(file, true);
+ InputStream is = BiffViewer.getPOIFSInputStream(fs);
try {
// use a NullOutputStream to not write the bytes anywhere for best runtime
BiffViewer.runBiffViewer(new PrintStream(NULL_OUTPUT_STREAM), is, true, true, true, false);
} finally {
is.close();
+ fs.close();
}
}
// @Test
+// @Ignore("only used for manual tests")
// public void testOneFile() throws Exception {
-// List<String> failed = new ArrayList<String>();
-// runOneFile("test-data/spreadsheet", "WORKBOOK_in_capitals.xls", failed);
-//
-// assertTrue("Expected to have no failed except the ones excluded, but had: " + failed,
-// failed.isEmpty());
+// POIDataSamples samples = POIDataSamples.getSpreadSheetInstance();
+// runOneFile(samples.getFile("43493.xls"));
// }
}