aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java
index a265ff2694..1b49b3883f 100644
--- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java
+++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java
@@ -54,7 +54,9 @@ public final class TestRangeDelete {
*/
@Test
void testOpen() throws IOException {
- openSampleFile(illustrativeDocFile).close();
+ try (HWPFDocument doc = openSampleFile(illustrativeDocFile)) {
+ assertEquals(5, doc.getParagraphTable().getParagraphs().size());
+ }
}
/**