diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2021-01-10 21:16:04 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2021-01-10 21:16:04 +0000 |
commit | 1041a876cb2bbd6f6349986645018160be0ba6e2 (patch) | |
tree | e4c612432f58ba583a028ae1cca40d3a630e860b /src/integrationtest/org/apache/poi/stress/BaseIntegrationTest.java | |
parent | cc7cd1caf32e631fc89d8cbd6570f9f57fbed826 (diff) | |
download | poi-1041a876cb2bbd6f6349986645018160be0ba6e2.tar.gz poi-1041a876cb2bbd6f6349986645018160be0ba6e2.zip |
Sonar fixes
JUnit5 test classes and methods should have default package visibility
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885340 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest/org/apache/poi/stress/BaseIntegrationTest.java')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/BaseIntegrationTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/BaseIntegrationTest.java b/src/integrationtest/org/apache/poi/stress/BaseIntegrationTest.java index a9d5f8e6db..bff0cb1ba8 100644 --- a/src/integrationtest/org/apache/poi/stress/BaseIntegrationTest.java +++ b/src/integrationtest/org/apache/poi/stress/BaseIntegrationTest.java @@ -29,6 +29,7 @@ import java.util.zip.ZipException; import org.apache.poi.EncryptedDocumentException; import org.apache.poi.OldFileFormatException; import org.apache.poi.poifs.filesystem.OfficeXmlFileException; +import org.junit.jupiter.api.Test; /** * This class is used for mass-regression testing via a @@ -37,7 +38,7 @@ import org.apache.poi.poifs.filesystem.OfficeXmlFileException; * types of files/exceptions, e.g. old file formats. * */ -public class BaseIntegrationTest { +class BaseIntegrationTest { private final File rootDir; private final String file; private FileHandler handler; @@ -48,7 +49,8 @@ public class BaseIntegrationTest { this.handler = handler; } - public void test() throws Exception { + @Test + void test() throws Exception { assertNotNull( handler, "Unknown file extension for file: " + file + ": " + TestAllFiles.getExtension(file) ); testOneFile(new File(rootDir, file)); } |