diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2020-12-28 14:06:24 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2020-12-28 14:06:24 +0000 |
commit | 77fc30c0e03afaf99d8dd25cf07c49414358a5aa (patch) | |
tree | 1d6f8a4a8130338720e979609625a4946d907991 /src/integrationtest/org/apache/poi/stress/HWPFFileHandler.java | |
parent | 0ab727bbde8ea20a9f72cc2c051bc83e0e79c7b9 (diff) | |
download | poi-77fc30c0e03afaf99d8dd25cf07c49414358a5aa.tar.gz poi-77fc30c0e03afaf99d8dd25cf07c49414358a5aa.zip |
sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884874 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest/org/apache/poi/stress/HWPFFileHandler.java')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/HWPFFileHandler.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/HWPFFileHandler.java b/src/integrationtest/org/apache/poi/stress/HWPFFileHandler.java index a7180af75d..260489c73e 100644 --- a/src/integrationtest/org/apache/poi/stress/HWPFFileHandler.java +++ b/src/integrationtest/org/apache/poi/stress/HWPFFileHandler.java @@ -16,6 +16,7 @@ ==================================================================== */ package org.apache.poi.stress; +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertNotNull; import java.io.File; @@ -64,8 +65,8 @@ public class HWPFFileHandler extends POIFSFileHandler { } @Test - public void testExtractingOld() throws Exception { + public void testExtractingOld() { File file = new File("test-data/document/52117.doc"); - handleExtracting(file); + assertDoesNotThrow(() -> handleExtracting(file)); } } |