aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2017-09-14 23:09:08 +0000
committerPJ Fanning <fanningpj@apache.org>2017-09-14 23:09:08 +0000
commit66d83f98d7d403875e2eaefe615624060e19157e (patch)
tree6566a72c6edd5e2b305db8da0c6ce61d4d23755b /src/testcases
parent03b4a49d9f36db6e8b91577db77661fffaee6e81 (diff)
downloadpoi-66d83f98d7d403875e2eaefe615624060e19157e.tar.gz
poi-66d83f98d7d403875e2eaefe615624060e19157e.zip
remove some deprecated code slated for removal in 3.18
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808402 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java
index d7fe79c983..2bce1c05d9 100644
--- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java
+++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java
@@ -20,12 +20,10 @@ package org.apache.poi.ss.usermodel;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
import java.io.IOException;
import org.apache.poi.ss.ITestDataProvider;
-import org.apache.poi.util.Removal;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -60,49 +58,6 @@ public abstract class BaseTestSheetHiding {
wbU.close();
}
- /**
- * @deprecated 3.16 beta 2. Use {@link #testSheetVisibility()} instead.
- *
- * @throws IOException
- */
- @Removal(version="3.18")
- @Deprecated
- @Test
- public final void testSheetHiddenOld() throws IOException {
- Workbook wb = _testDataProvider.createWorkbook();
- wb.createSheet("MySheet");
-
- assertFalse(wb.isSheetHidden(0));
- assertFalse(wb.isSheetVeryHidden(0));
-
- wb.setSheetHidden(0, Workbook.SHEET_STATE_HIDDEN);
- assertTrue(wb.isSheetHidden(0));
- assertFalse(wb.isSheetVeryHidden(0));
-
- wb.setSheetHidden(0, Workbook.SHEET_STATE_VERY_HIDDEN);
- assertFalse(wb.isSheetHidden(0));
- assertTrue(wb.isSheetVeryHidden(0));
-
- wb.setSheetHidden(0, Workbook.SHEET_STATE_VISIBLE);
- assertFalse(wb.isSheetHidden(0));
- assertFalse(wb.isSheetVeryHidden(0));
-
- try {
- wb.setSheetHidden(0, -1);
- fail("expectd exception");
- } catch (IllegalArgumentException e){
- // ok
- }
- try {
- wb.setSheetHidden(0, 3);
- fail("expectd exception");
- } catch (IllegalArgumentException e){
- // ok
- }
-
- wb.close();
- }
-
@Test
public final void testSheetVisibility() throws IOException {
Workbook wb = _testDataProvider.createWorkbook();