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:
parent
57d32bcc7e
commit
9e43771b7e
38
src/testcases/org/apache/poi/hpsf/basic/TestBugs.java
Normal file
38
src/testcases/org/apache/poi/hpsf/basic/TestBugs.java
Normal 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);
|
||||
}
|
||||
|
||||
}
|
BIN
src/testcases/org/apache/poi/hpsf/data/Bug44375.xls
Normal file
BIN
src/testcases/org/apache/poi/hpsf/data/Bug44375.xls
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user