poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r610097 - in /poi/trunk/src/testcases/org/apache/poi/hssf: data/43493.xls usermodel/TestHSSFWorkbook.java usermodel/TestUnfixedBugs.java
Date Tue, 08 Jan 2008 19:11:23 GMT
Author: nick
Date: Tue Jan  8 11:11:22 2008
New Revision: 610097

URL: http://svn.apache.org/viewvc?rev=610097&view=rev
Log:
Add un-fixable testcase for bug 43493

Added:
    poi/trunk/src/testcases/org/apache/poi/hssf/data/43493.xls   (with props)
Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java

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

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

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java?rev=610097&r1=610096&r2=610097&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java Tue Jan  8
11:11:22 2008
@@ -16,14 +16,23 @@
 */
 package org.apache.poi.hssf.usermodel;
 
+import java.io.File;
+import java.io.FileInputStream;
+
 import junit.framework.*;
 import org.apache.poi.hssf.record.NameRecord;
 
 public class TestHSSFWorkbook extends TestCase
 {
     HSSFWorkbook hssfWorkbook;
+    String filename;
+
+	protected void setUp() throws Exception {
+		super.setUp();
+        filename = System.getProperty("HSSF.testdata.path");
+	}
 
-    public void testSetRepeatingRowsAndColumns() throws Exception
+	public void testSetRepeatingRowsAndColumns() throws Exception
     {
         // Test bug 29747
         HSSFWorkbook b = new HSSFWorkbook( );
@@ -34,7 +43,7 @@
         NameRecord nameRecord = b.getWorkbook().getNameRecord( 0 );
         assertEquals( 3, nameRecord.getIndexToSheet() );
     }
-
+    
     public void testDuplicateNames()
             throws Exception
     {

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java?rev=610097&r1=610096&r2=610097&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java Tue Jan  8
11:11:22 2008
@@ -110,6 +110,13 @@
 	        assertTrue("No Exceptions while reading file", true);
 
 	    }
-
-	
+	    
+	    public void test43493() throws Exception {
+	    	// Has crazy corrup subrecords on
+	    	//  a EmbeddedObjectRefSubRecord
+	    	File f = new File(cwd, "43493.xls");
+	    	HSSFWorkbook wb = new HSSFWorkbook(
+	    			new FileInputStream(f)
+	    	);
+	    }
 }



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


Mime
View raw message