aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/testcases/org/apache
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-12-26 00:08:19 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-12-26 00:08:19 +0000
commitd121353f612c6efbcf156e166158f1d403e8697e (patch)
tree078baea3d2ad8cb33ae4752e677aa8887372389f /src/ooxml/testcases/org/apache
parentbe1afe5ff586cfc01c68ca6dc58e84f951aca2ef (diff)
downloadpoi-d121353f612c6efbcf156e166158f1d403e8697e.tar.gz
poi-d121353f612c6efbcf156e166158f1d403e8697e.zip
Sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884807 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache')
-rw-r--r--src/ooxml/testcases/org/apache/poi/extractor/ooxml/TestExtractorFactory.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/extractor/ooxml/TestExtractorFactory.java b/src/ooxml/testcases/org/apache/poi/extractor/ooxml/TestExtractorFactory.java
index 1ef26afca2..3f827c3797 100644
--- a/src/ooxml/testcases/org/apache/poi/extractor/ooxml/TestExtractorFactory.java
+++ b/src/ooxml/testcases/org/apache/poi/extractor/ooxml/TestExtractorFactory.java
@@ -165,10 +165,8 @@ public class TestExtractorFactory {
@Test
public void testPOIFSInvalid() {
- IOException ex = assertThrows(
- IOException.class,
- () -> ExtractorFactory.createExtractor(new POIFSFileSystem(txt))
- );
+ // Not really an Extractor test, but we'll leave it to test POIFS reaction anyway ...
+ IOException ex = assertThrows(IOException.class, () -> new POIFSFileSystem(txt));
assertTrue(ex.getMessage().contains("Invalid header signature; read 0x3D20726F68747541, expected 0xE11AB1A1E011CFD0"));
}