diff options
author | Javen O'Neal <onealj@apache.org> | 2017-01-20 04:55:06 +0000 |
---|---|---|
committer | Javen O'Neal <onealj@apache.org> | 2017-01-20 04:55:06 +0000 |
commit | 42a785a7d99ea12a2155a3cee04595df24cf5bcc (patch) | |
tree | e0236bcf9c69a0f2de694510d5cb687e2664a916 /src/testcases/org/apache/poi/ss | |
parent | 8237512ed74bdf70a0b8ab1dd125ec3a0b63654a (diff) | |
download | poi-42a785a7d99ea12a2155a3cee04595df24cf5bcc.tar.gz poi-42a785a7d99ea12a2155a3cee04595df24cf5bcc.zip |
bug 60605: remove code for enforcing rule that active sheet cannot be hidden
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1779561 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss')
-rw-r--r-- | src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java index 5a35b3b4b5..46117a0624 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java @@ -130,32 +130,6 @@ public abstract class BaseTestSheetHiding { wb.close(); } - - @Ignore - @Test - public void testCannotHideActiveSheet() throws IOException { - Workbook wb = _testDataProvider.createWorkbook(); - wb.createSheet("Active Sheet"); - wb.createSheet("Inactive Sheet"); - wb.setActiveSheet(0); - assertEquals(0, wb.getActiveSheetIndex()); - - try { - wb.setSheetVisibility(0, SheetVisibility.VERY_HIDDEN); - fail("Should not be able to hide an active sheet"); - } catch (final IllegalStateException e) { - // expected - } - - try { - wb.setSheetVisibility(0, SheetVisibility.HIDDEN); - fail("Should not be able to hide an active sheet"); - } catch (final IllegalStateException e) { - // expected - } - - wb.close(); - } /** * Test that we get the right number of sheets, |