Bug 61864: Verify recalculation-flag on Workbook level some more

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875836 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2020-03-29 08:16:09 +00:00
parent e88fac30b8
commit f58aa530da
1 changed files with 13 additions and 0 deletions

View File

@ -507,6 +507,13 @@ public final class TestXSSFWorkbook extends BaseTestXWorkbook {
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 extends BaseTestXWorkbook {
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();
}
}