]> source.dussan.org Git - poi.git/commitdiff
bug 60605: replace Workbook.SHEET_STATE_VERY_HIDDEN with SheetVisibility.VERY_HIDDEN
authorJaven O'Neal <onealj@apache.org>
Fri, 20 Jan 2017 05:00:29 +0000 (05:00 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 20 Jan 2017 05:00:29 +0000 (05:00 +0000)
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

index 862b6cec7d6aa87123637d143d6913e7c51ea1e2..27186886474d2b61df0c99a9056b01d416701313 100644 (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.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();