poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1666510 - in /poi/trunk/src/ooxml/testcases/org/apache/poi: extractor/TestExtractorFactory.java xssf/usermodel/TestXSSFBugs.java
Date Fri, 13 Mar 2015 16:46:16 GMT
Author: nick
Date: Fri Mar 13 16:46:15 2015
New Revision: 1666510

URL: http://svn.apache.org/r1666510
Log:
Stub unit tests for #57699

Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java?rev=1666510&r1=1666509&r2=1666510&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java Fri Mar
13 16:46:15 2015
@@ -51,6 +51,7 @@ public class TestExtractorFactory extend
 
     private File xls;
     private File xlsx;
+    private File xlsxStrict;
     private File xltx;
     private File xlsEmb;
 
@@ -90,6 +91,7 @@ public class TestExtractorFactory extend
         POIDataSamples ssTests = POIDataSamples.getSpreadSheetInstance();
         xls = getFileAndCheck(ssTests, "SampleSS.xls");
         xlsx = getFileAndCheck(ssTests, "SampleSS.xlsx");
+        xlsxStrict = getFileAndCheck(ssTests, "SampleSS.strict.xlsx");
         xltx = getFileAndCheck(ssTests, "test.xltx");
         xlsEmb = getFileAndCheck(ssTests, "excel_with_embeded.xls");
 
@@ -159,6 +161,20 @@ public class TestExtractorFactory extend
         );
         extractor.close();
 
+        // TODO Support OOXML-Strict, see bug #57699
+//        extractor = ExtractorFactory.createExtractor(xlsxStrict);
+//        assertTrue(
+//                extractor
+//                instanceof XSSFExcelExtractor
+//        );
+//        extractor.close();
+//
+//        extractor = ExtractorFactory.createExtractor(xlsxStrict);
+//        assertTrue(
+//                extractor.getText().contains("test")
+//        );
+//        extractor.close();
+
 
         // Word
         assertTrue(

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java?rev=1666510&r1=1666509&r2=1666510&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java Fri Mar
13 16:46:15 2015
@@ -2290,4 +2290,16 @@ public final class TestXSSFBugs extends
         	wb.close();
         }
     }
+    
+    /**
+     * OOXML-Strict files
+     */
+    @Test
+    @Ignore
+    public void test57699() throws Exception {
+        Workbook wb = XSSFTestDataSamples.openSampleWorkbook("sample.strict.xlsx");
+        assertEquals(3, wb.getNumberOfSheets());
+        
+        // TODO Check the rest
+    }
 }



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


Mime
View raw message