]> source.dussan.org Git - poi.git/commitdiff
Add (disabled) failing testcase for bug #44375
authorNick Burch <nick@apache.org>
Thu, 7 Feb 2008 17:12:09 +0000 (17:12 +0000)
committerNick Burch <nick@apache.org>
Thu, 7 Feb 2008 17:12:09 +0000 (17:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619509 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hpsf/basic/TestBugs.java [new file with mode: 0644]
src/testcases/org/apache/poi/hpsf/data/Bug44375.xls [new file with mode: 0644]

diff --git a/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java b/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java
new file mode 100644 (file)
index 0000000..0d2b55d
--- /dev/null
@@ -0,0 +1,38 @@
+package org.apache.poi.hpsf.basic;
+
+import java.io.File;
+import java.io.FileInputStream;
+
+import org.apache.poi.hpsf.DocumentSummaryInformation;
+import org.apache.poi.hpsf.PropertySet;
+import org.apache.poi.hpsf.PropertySetFactory;
+import org.apache.poi.hpsf.SummaryInformation;
+import org.apache.poi.poifs.filesystem.DocumentInputStream;
+import org.apache.poi.poifs.filesystem.POIFSFileSystem;
+
+import junit.framework.TestCase;
+
+public class TestBugs extends TestCase {
+       private String dirname;
+
+       protected void setUp() throws Exception {
+               dirname = System.getProperty("HPSF.testdata.path");
+       }
+       
+       public void BROKENtestBug44375() throws Exception {
+               POIFSFileSystem fs = new POIFSFileSystem(
+                               new FileInputStream(new File(dirname,"Bug44375.xls"))
+               );
+               
+               DocumentInputStream dis;
+               PropertySet set;
+
+               dis = fs.createDocumentInputStream(DocumentSummaryInformation.DEFAULT_STREAM_NAME);
+               set = PropertySetFactory.create(dis);
+               
+               dis = fs.createDocumentInputStream(SummaryInformation.DEFAULT_STREAM_NAME);
+               // This currently fails
+               set = PropertySetFactory.create(dis);
+       }
+
+}
diff --git a/src/testcases/org/apache/poi/hpsf/data/Bug44375.xls b/src/testcases/org/apache/poi/hpsf/data/Bug44375.xls
new file mode 100644 (file)
index 0000000..1e253d1
Binary files /dev/null and b/src/testcases/org/apache/poi/hpsf/data/Bug44375.xls differ