poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1779562 - /poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
Date Fri, 20 Jan 2017 05:00:29 GMT
Author: onealj
Date: Fri Jan 20 05:00:29 2017
New Revision: 1779562

URL: http://svn.apache.org/viewvc?rev=1779562&view=rev
Log:
bug 60605: replace Workbook.SHEET_STATE_VERY_HIDDEN with SheetVisibility.VERY_HIDDEN

Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java?rev=1779562&r1=1779561&r2=1779562&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java Fri Jan 20 05:00:29
2017
@@ -80,6 +80,7 @@ import org.apache.poi.ss.usermodel.Formu
 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 Base
         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();



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message