mirror of https://github.com/apache/poi.git
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:
parent
e88fac30b8
commit
f58aa530da
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue