poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1693663 - in /poi/trunk/src/ooxml/testcases/org/apache/poi/xssf: streaming/TestSXSSFWorkbook.java usermodel/TestSXSSFBugs.java
Date Fri, 31 Jul 2015 22:16:53 GMT
Author: nick
Date: Fri Jul 31 22:16:53 2015
New Revision: 1693663

URL: http://svn.apache.org/r1693663
Log:
Re-enable some SXSSF skipped tests, but not all, for our limited evaluation support #58200

Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java?rev=1693663&r1=1693662&r2=1693663&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java Fri
Jul 31 22:16:53 2015
@@ -42,6 +42,7 @@ import org.apache.poi.xssf.SXSSFITestDat
 import org.apache.poi.xssf.model.SharedStringsTable;
 import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 import org.junit.After;
+import org.junit.Assume;
 import org.junit.Ignore;
 import org.junit.Test;
 
@@ -72,20 +73,13 @@ public final class TestSXSSFWorkbook ext
     }
 
     /**
-     * this test involves evaluation of formulas which isn't supported for SXSSF
+     * Skip this test, as SXSSF doesn't update formulas on sheet name
+     *  changes.
      */
     @Override
     @Test
     public void setSheetName() {
-        try {
-            super.setSheetName();
-            fail("expected exception");
-        } catch (ClassCastException e) { // TODO Temporary workaround during #58200
-        } catch (Exception e){
-            assertEquals(
-                    "Unexpected type of cell: class org.apache.poi.xssf.streaming.SXSSFCell.
" +
-                    "Only XSSFCells can be evaluated.", e.getMessage());
-        }
+        Assume.assumeTrue("SXSSF doesn't update formulas on sheet name changes, as most cells
probably aren't in memory at the time", false);
     }
 
     @Test
@@ -217,7 +211,7 @@ public final class TestSXSSFWorkbook ext
     @Test
     public void sheetdataWriter(){
         SXSSFWorkbook wb = new SXSSFWorkbook();
-        SXSSFSheet sh = (SXSSFSheet)wb.createSheet();
+        SXSSFSheet sh = wb.createSheet();
         SheetDataWriter wr = sh.getSheetDataWriter();
         assertTrue(wr.getClass() == SheetDataWriter.class);
         File tmp = wr.getTempFile();
@@ -227,7 +221,7 @@ public final class TestSXSSFWorkbook ext
 
         wb = new SXSSFWorkbook();
         wb.setCompressTempFiles(true);
-        sh = (SXSSFSheet)wb.createSheet();
+        sh = wb.createSheet();
         wr = sh.getSheetDataWriter();
         assertTrue(wr.getClass() == GZIPSheetDataWriter.class);
         tmp = wr.getTempFile();

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java?rev=1693663&r1=1693662&r2=1693663&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java Fri Jul
31 22:16:53 2015
@@ -34,15 +34,11 @@ public final class TestSXSSFBugs extends
     }
 
     // override some tests which do not work for SXSSF
-    // TODO Re-enable some of these when #58200 is implemented
     @Override @Ignore("cloneSheet() not implemented") @Test public void bug18800() { /* cloneSheet()
not implemented */ }
     @Override @Ignore("cloneSheet() not implemented") @Test public void bug22720() { /* cloneSheet()
not implemented */ }
-    @Override @Ignore("Evaluation is not supported") @Test public void bug43093() { /* Evaluation
is not supported */ }
-    @Override @Ignore("Evaluation is not supported") @Test public void bug51024() { /* Evaluation
is not supported */ }
-    @Override @Ignore("Evaluation is not supported") @Test public void bug46729_testMaxFunctionArguments()
{ /* Evaluation is not supported */ }
-    @Override @Ignore("Evaluation is not supported") @Test public void stackoverflow26437323()
{ /* Evaluation is not supported */ }
-    @Override @Ignore("Evaluation is not supported") @Test public void bug47815() { /* Evaluation
is not supported */ }
-    @Override @Ignore("Evaluation is not supported") @Test public void test58113() { /* Evaluation
is not supported */ }
+    @Override @Ignore("Evaluation is not fully supported") @Test public void bug47815() {
/* Evaluation is not supported */ }
+    @Override @Ignore("Evaluation is not fully supported") @Test public void test58113()
{ /* Evaluation is not supported */ }
+    @Override @Ignore("Evaluation is not fully supported") @Test public void bug46729_testMaxFunctionArguments()
{ /* Evaluation is not supported */ }
     
     /**
      * Setting repeating rows and columns shouldn't break



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


Mime
View raw message