poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r620557 - in /poi/trunk/src/testcases/org/apache/poi/hssf: data/42564-2.xls usermodel/TestBugs.java
Date Mon, 11 Feb 2008 17:55:10 GMT
Author: nick
Date: Mon Feb 11 09:55:09 2008
New Revision: 620557

URL: http://svn.apache.org/viewvc?rev=620557&view=rev
Log:
Another test relating to bug #42564 - this one is still failing

Added:
    poi/trunk/src/testcases/org/apache/poi/hssf/data/42564-2.xls   (with props)
Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

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

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

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java?rev=620557&r1=620556&r2=620557&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java Mon Feb 11 09:55:09
2008
@@ -1011,11 +1011,33 @@
     }
 
     /**
-     * Bug 42564: Some files from Acess were giving a RecordFormatException
+     * Bug 42564: Some files from Access were giving a RecordFormatException
      *  when reading the BOFRecord
      */
     public void test42564() throws Exception {
         FileInputStream in = new FileInputStream(new File(cwd, "42564.xls"));
+        HSSFWorkbook wb = new HSSFWorkbook(in);
+        in.close();
+
+        assertTrue("No Exceptions while reading file", true);
+
+        //serialize and read again
+        ByteArrayOutputStream out = new ByteArrayOutputStream();
+        wb.write(out);
+        out.close();
+
+        wb = new HSSFWorkbook(new ByteArrayInputStream(out.toByteArray()));
+        assertTrue("No Exceptions while reading file", true);
+    }
+    
+    /**
+     * Bug 42564: Some files from Access also have issues
+     *  with the NameRecord, once you get past the BOFRecord
+     *  issue.
+     * TODO - still broken
+     */
+    public void DISABLEDtest42564Alt() throws Exception {
+        FileInputStream in = new FileInputStream(new File(cwd, "42564-2.xls"));
         HSSFWorkbook wb = new HSSFWorkbook(in);
         in.close();
 



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


Mime
View raw message