diff options
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, |