|
|
@@ -489,7 +489,7 @@ public final class TestXSSFWorkbook extends BaseTestXWorkbook { |
|
|
|
CTWorkbook ctWorkbook = wb.getCTWorkbook(); |
|
|
|
assertFalse(ctWorkbook.isSetCalcPr()); |
|
|
|
|
|
|
|
wb.setForceFormulaRecalculation(true); // resets the EngineId flag to zero |
|
|
|
wb.setForceFormulaRecalculation(true); |
|
|
|
|
|
|
|
CTCalcPr calcPr = ctWorkbook.getCalcPr(); |
|
|
|
assertNotNull(calcPr); |
|
|
@@ -498,8 +498,7 @@ public final class TestXSSFWorkbook extends BaseTestXWorkbook { |
|
|
|
calcPr.setCalcId(100); |
|
|
|
assertTrue(wb.getForceFormulaRecalculation()); |
|
|
|
|
|
|
|
wb.setForceFormulaRecalculation(true); // resets the EngineId flag to zero |
|
|
|
assertEquals(0, (int) calcPr.getCalcId()); |
|
|
|
wb.setForceFormulaRecalculation(false); |
|
|
|
assertTrue(wb.getForceFormulaRecalculation()); |
|
|
|
|
|
|
|
// calcMode="manual" is unset when forceFormulaRecalculation=true |
|
|
@@ -1145,8 +1144,7 @@ public final class TestXSSFWorkbook extends BaseTestXWorkbook { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* See bug #61700 test data tables |
|
|
|
* |
|
|
|
* See bug #61700 |
|
|
|
* @throws Exception |
|
|
|
*/ |
|
|
|
@Test |
|
|
@@ -1154,14 +1152,14 @@ public final class TestXSSFWorkbook extends BaseTestXWorkbook { |
|
|
|
Workbook workbook = _testDataProvider.createWorkbook(); |
|
|
|
workbook.createSheet().createRow(0).createCell(0).setCellFormula("B1+C1"); |
|
|
|
workbook.getCreationHelper().createFormulaEvaluator().evaluateAll(); |
|
|
|
|
|
|
|
|
|
|
|
assertFalse(workbook.getForceFormulaRecalculation()); |
|
|
|
workbook.setForceFormulaRecalculation(true); |
|
|
|
assertTrue(workbook.getForceFormulaRecalculation()); |
|
|
|
|
|
|
|
|
|
|
|
Workbook wbBack = _testDataProvider.writeOutAndReadBack(workbook); |
|
|
|
assertTrue(wbBack.getForceFormulaRecalculation()); |
|
|
|
|
|
|
|
|
|
|
|
workbook.close(); |
|
|
|
wbBack.close(); |
|
|
|
} |