poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1875836 - /poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
Date Sun, 29 Mar 2020 08:16:09 GMT
Author: centic
Date: Sun Mar 29 08:16:09 2020
New Revision: 1875836

URL: http://svn.apache.org/viewvc?rev=1875836&view=rev
Log:
Bug 61864: Verify recalculation-flag on Workbook level some more

Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java?rev=1875836&r1=1875835&r2=1875836&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java Sun
Mar 29 08:16:09 2020
@@ -507,6 +507,13 @@ public final class TestXSSFWorkbook exte
             calcPr.setCalcMode(STCalcMode.MANUAL);
             wb.setForceFormulaRecalculation(true);
             assertEquals(STCalcMode.AUTO, calcPr.getCalcMode());
+            assertTrue(wb.getForceFormulaRecalculation());
+
+            wb.setForceFormulaRecalculation(false);
+            assertFalse(wb.getForceFormulaRecalculation());
+
+            wb.setForceFormulaRecalculation(true);
+            assertTrue(wb.getForceFormulaRecalculation());
         }
     }
 
@@ -1163,8 +1170,14 @@ public final class TestXSSFWorkbook exte
 
         Workbook wbBack = _testDataProvider.writeOutAndReadBack(workbook);
         assertTrue(wbBack.getForceFormulaRecalculation());
+        wbBack.setForceFormulaRecalculation(false);
+        assertFalse(wbBack.getForceFormulaRecalculation());
+
+        Workbook wbBack2 = _testDataProvider.writeOutAndReadBack(wbBack);
+        assertFalse(wbBack2.getForceFormulaRecalculation());
 
         workbook.close();
         wbBack.close();
+        wbBack2.close();
     }
 }



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


Mime
View raw message