diff options
author | Dominik Stadler <centic@apache.org> | 2015-10-17 14:40:36 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2015-10-17 14:40:36 +0000 |
commit | 2afe97762259bd86d8209b77155beda8235e3e85 (patch) | |
tree | 7740827aa7833a572748deefb4364f009edf00e9 /src/testcases/org/apache/poi/hssf/usermodel | |
parent | e62cac4f717a05e7f934c1665a11c697af21719e (diff) | |
download | poi-2afe97762259bd86d8209b77155beda8235e3e85.tar.gz poi-2afe97762259bd86d8209b77155beda8235e3e85.zip |
Bug 58499: Don't report Zip-Bomb for small files which should not cause memory issues anyway
Also make error message a bit more specific and list classname in Zip-Bomb-Error to make it easier for users what the
problem is and how to find out where the static methods are
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1709180 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java index f40ce344f2..4b92b30bc2 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java @@ -81,19 +81,6 @@ public final class TestHSSFWorkbook extends BaseTestWorkbook { return wb.getWorkbook(); } - @Test - public void windowOneDefaults() throws IOException { - HSSFWorkbook b = new HSSFWorkbook( ); - try { - assertEquals(b.getActiveSheetIndex(), 0); - assertEquals(b.getFirstVisibleTab(), 0); - } catch (NullPointerException npe) { - fail("WindowOneRecord in Workbook is probably not initialized"); - } - - b.close(); - } - /** * Tests for {@link HSSFWorkbook#isHidden()} etc * @throws IOException |