diff options
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.java | 4 |
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()); + } } /** |