aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-10-05 20:00:07 +0000
committerDominik Stadler <centic@apache.org>2016-10-05 20:00:07 +0000
commite65020bb72ffb7f8ef0003758137b9513ad91ef8 (patch)
treef4d3e5cd2d961a08a30e7ebce5d5735f45215228 /src/testcases/org/apache/poi/ss
parentb66689d2b026280202c04d3a52cb33199abef2ab (diff)
downloadpoi-e65020bb72ffb7f8ef0003758137b9513ad91ef8.tar.gz
poi-e65020bb72ffb7f8ef0003758137b9513ad91ef8.zip
Use IOUtils.closeQuietly() in more places
Avoid two possible file-handle leaks when opening files fails with an exception Make tests close resources properly to not spam the output when running with file-leak-detector git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1763485 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java
index a19cf6684b..be097d3482 100644
--- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java
+++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java
@@ -1017,7 +1017,7 @@ public abstract class BaseTestCell {
}
@Test
- public void primitiveToEnumReplacementDoesNotBreakBackwardsCompatibility() {
+ public void primitiveToEnumReplacementDoesNotBreakBackwardsCompatibility() throws IOException {
// bug 59836
// until we have changes POI from working on primitives (int) to enums,
// we should make sure we minimize backwards compatibility breakages.
@@ -1046,5 +1046,7 @@ public abstract class BaseTestCell {
default:
fail("unexpected cell type: " + cell.getCellType());
}
+
+ wb.close();
}
}