From f635d275148e5b370903bdb59b2605e61b90cb99 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 7 Feb 2008 17:12:09 +0000 Subject: [PATCH] Add (disabled) failing testcase for bug #44375 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619509 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hpsf/basic/TestBugs.java | 38 ++++++++++++++++++ .../org/apache/poi/hpsf/data/Bug44375.xls | Bin 0 -> 16896 bytes 2 files changed, 38 insertions(+) create mode 100644 src/testcases/org/apache/poi/hpsf/basic/TestBugs.java create mode 100644 src/testcases/org/apache/poi/hpsf/data/Bug44375.xls 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 index 0000000000..0d2b55d5f8 --- /dev/null +++ b/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java @@ -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 index 0000000000000000000000000000000000000000..1e253d175cab5737a8b9cb8379d874b359e5a474 GIT binary patch literal 16896 zcmeHPeQaCR6+h3l6DR$MlTwn>;=MYZ>!eParX3VY>NIU9x+QHE7_Am}!HpkFR42|H zXCvAs0;OVqY|)w(w*d@#4gItYNIp_w`pDN@7 zg7RFB*+Lvd8YB&$APv;`F_2Y0`BT%&)o;uqxlH6O@yO4;XAp|~6&RNZ@r$G;(o;uM ziE;CP0X<5Fgh3f*G4Z+#uNa^`3S1>?m23?vT&=>NDbCX>?2-lW%eB-~ zvF@@8bu0J#ym)1WP$~*mE)`2Rx|RmL+r%f0Vl+!snsIetI86!3Ni!rnk!}NReo4^V zg-3t=Le&OkKrBhhkqQmOq*|_bHqef~EA?Jp9`x?Vv

kVj)T9H}+L&l^etu!X39l z18#TCGFvB=ISOrrz#nqx)2`33TNnnt$D~EJE!61{2EnevVVK`#v7B5iFLqd3R_N|t z4COAj?#k7%P`B=UrQOFQR`H&{A)BE^7eyBvFG@fE&fU1&1t_+{@`4W5%afSz651GQ zjy5-U47KcxM+%vEOVGPPp2Ea-mJbeC$s?sqA$b~;_aak!M`=6Av#Cw;42GnPtE{y= z>y7eb=@c2FD6M8evV1lkQG|HQ&O9O17J}SEk?tY%(k{)M}R0h{;dn z=F-mWJ1Ff>iRS1s7AtmogFJ`zuGndz{>6R^l~vcynsstgYDLDzwj`5VrU5~3Kz=IA zOY{`f_#?3K6+_clIJ15uJ3oRx;p=m|aiYl2kNjH%9k$z!u zbgtQM{0q^+?#h29(+w9rSL22+(9naPZLsxE)6k9X16{R)r;NbydeGyQz)Ve!as7;6 z#WEwgI}K|81YYTTYi!=h5zESMC8cAvgVOmOyy6VmAg5pm;I-{-1PANdV4$o?)=_!` zGfmA6L{(iZZU@$u6z3~eb#V^GRPh|X;c&_veclV8G2 z7u$vkl-N+qJ+P}B@cRall@uIraSz^{bt+wtP$Ym3-h1}nul617j}0k$tDI)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