Add (disabled) failing testcase for bug #44375

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619509 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2008-02-07 17:12:09 +00:00
parent 57d32bcc7e
commit 9e43771b7e
2 changed files with 38 additions and 0 deletions

View File

@ -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);
}
}

Binary file not shown.