bug 60605: replace Workbook.SHEET_STATE_VERY_HIDDEN with SheetVisibility.VERY_HIDDEN

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1779562 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-01-20 05:00:29 +00:00
parent dfd906aa9b
commit 2f648842cd

View File

@ -80,6 +80,7 @@ import org.apache.poi.ss.usermodel.FormulaEvaluator;
import org.apache.poi.ss.usermodel.Name; import org.apache.poi.ss.usermodel.Name;
import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.SheetVisibility;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.util.LocaleUtil; import org.apache.poi.util.LocaleUtil;
@ -1341,8 +1342,8 @@ public final class TestBugs extends BaseTestBugzillaIssues {
assertFalse(wb1.isSheetHidden(2)); assertFalse(wb1.isSheetHidden(2));
assertTrue(wb1.isSheetVeryHidden(2)); assertTrue(wb1.isSheetVeryHidden(2));
// Change 0 to be very hidden, and re-load // Change sheet 0 to be very hidden, and re-load
wb1.setSheetHidden(0, Workbook.SHEET_STATE_VERY_HIDDEN); wb1.setSheetVisibility(0, SheetVisibility.VERY_HIDDEN);
HSSFWorkbook wb2 = writeOutAndReadBack(wb1); HSSFWorkbook wb2 = writeOutAndReadBack(wb1);
wb1.close(); wb1.close();