From 2f648842cdd97f3973822067280dc39244fbd4dc Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Fri, 20 Jan 2017 05:00:29 +0000 Subject: [PATCH] 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 --- src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 862b6cec7..271868864 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -80,6 +80,7 @@ import org.apache.poi.ss.usermodel.FormulaEvaluator; import org.apache.poi.ss.usermodel.Name; import org.apache.poi.ss.usermodel.Row; 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.util.CellRangeAddress; import org.apache.poi.util.LocaleUtil; @@ -1341,8 +1342,8 @@ public final class TestBugs extends BaseTestBugzillaIssues { assertFalse(wb1.isSheetHidden(2)); assertTrue(wb1.isSheetVeryHidden(2)); - // Change 0 to be very hidden, and re-load - wb1.setSheetHidden(0, Workbook.SHEET_STATE_VERY_HIDDEN); + // Change sheet 0 to be very hidden, and re-load + wb1.setSheetVisibility(0, SheetVisibility.VERY_HIDDEN); HSSFWorkbook wb2 = writeOutAndReadBack(wb1); wb1.close();