From d121353f612c6efbcf156e166158f1d403e8697e Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sat, 26 Dec 2020 00:08:19 +0000 Subject: Sonar fixes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884807 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/extractor/ooxml/TestExtractorFactory.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/ooxml/testcases/org/apache') 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")); } -- cgit v1.2.3