poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r619509 - in /poi/trunk/src/testcases/org/apache/poi/hpsf: basic/TestBugs.java data/Bug44375.xls
Date Thu, 07 Feb 2008 17:12:10 GMT
Author: nick
Date: Thu Feb  7 09:12:09 2008
New Revision: 619509

URL: http://svn.apache.org/viewvc?rev=619509&view=rev
Log:
Add (disabled) failing testcase for bug #44375

Added:
    poi/trunk/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java   (with props)
    poi/trunk/src/testcases/org/apache/poi/hpsf/data/Bug44375.xls   (with props)

Added: poi/trunk/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java?rev=619509&view=auto
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java (added)
+++ poi/trunk/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java Thu Feb  7 09:12:09 2008
@@ -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);
+	}
+
+}

Propchange: poi/trunk/src/testcases/org/apache/poi/hpsf/basic/TestBugs.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: poi/trunk/src/testcases/org/apache/poi/hpsf/data/Bug44375.xls
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hpsf/data/Bug44375.xls?rev=619509&view=auto
==============================================================================
Binary file - no diff available.

Propchange: poi/trunk/src/testcases/org/apache/poi/hpsf/data/Bug44375.xls
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message