diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2021-01-10 01:42:30 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2021-01-10 01:42:30 +0000 |
commit | 834a7628d2b005d41ea0d1b1818e8908e96dd742 (patch) | |
tree | 4f5b0b1e763991ae9db22df08dfa50da5f4df936 /src/ooxml/testcases/org/apache/poi/ss/tests | |
parent | 9c358836b4efe0b575c37d198a9970c2cf3b1ea0 (diff) | |
download | poi-834a7628d2b005d41ea0d1b1818e8908e96dd742.tar.gz poi-834a7628d2b005d41ea0d1b1818e8908e96dd742.zip |
Sonar fixes
JUnit5 test classes and methods should have default package visibility
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885326 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/ss/tests')
11 files changed, 11 insertions, 11 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/extractor/TestEmbeddedExtractor.java b/src/ooxml/testcases/org/apache/poi/ss/tests/extractor/TestEmbeddedExtractor.java index 57368ee1fd..ca3ec7d1fe 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/extractor/TestEmbeddedExtractor.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/extractor/TestEmbeddedExtractor.java @@ -40,7 +40,7 @@ import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory; import org.junit.jupiter.api.Test; -public class TestEmbeddedExtractor { +class TestEmbeddedExtractor { private static final POIDataSamples samples = POIDataSamples.getSpreadSheetInstance(); @Test diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/format/TestCellFormatPart.java b/src/ooxml/testcases/org/apache/poi/ss/tests/format/TestCellFormatPart.java index 8978c1a4a4..8514542080 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/format/TestCellFormatPart.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/format/TestCellFormatPart.java @@ -54,7 +54,7 @@ import org.junit.jupiter.api.Test; * flag "Categories" is not empty, only tests that have at least one category * listed in "Categories" are run. */ -public class TestCellFormatPart { +class TestCellFormatPart { private static final Pattern NUMBER_EXTRACT_FMT = Pattern.compile( "([-+]?[0-9]+)(\\.[0-9]+)?.*(?:(e).*?([+-]?[0-9]+))", Pattern.CASE_INSENSITIVE); diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/formula/TestFormulaParser.java b/src/ooxml/testcases/org/apache/poi/ss/tests/formula/TestFormulaParser.java index 42a8e47d60..5d1c7d8e31 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/formula/TestFormulaParser.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/formula/TestFormulaParser.java @@ -46,7 +46,7 @@ import org.junit.jupiter.api.Test; * * @author David North */ -public class TestFormulaParser { +class TestFormulaParser { @Test void testHSSFFailsForOver65536() { diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/formula/TestStructuredReferences.java b/src/ooxml/testcases/org/apache/poi/ss/tests/formula/TestStructuredReferences.java index 9e7930737b..f169e7b69d 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/formula/TestStructuredReferences.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/formula/TestStructuredReferences.java @@ -42,7 +42,7 @@ import org.junit.jupiter.api.Test; * Excel Structured Reference Syntax * </a> */ -public class TestStructuredReferences { +class TestStructuredReferences { /** * Test the regular expression used in INDIRECT() evaluation to recognize structured references diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/formula/functions/TestSumifsXSSF.java b/src/ooxml/testcases/org/apache/poi/ss/tests/formula/functions/TestSumifsXSSF.java index 98d8c479f2..2beafffd13 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/formula/functions/TestSumifsXSSF.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/formula/functions/TestSumifsXSSF.java @@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test; /** * */ -public class TestSumifsXSSF { +class TestSumifsXSSF { /** * handle null cell predicate diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/formula/functions/TestVlookup.java b/src/ooxml/testcases/org/apache/poi/ss/tests/formula/functions/TestVlookup.java index ce6ba5f793..3c689093e6 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/formula/functions/TestVlookup.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/formula/functions/TestVlookup.java @@ -37,7 +37,7 @@ import org.junit.jupiter.api.Test; /** * Test the VLOOKUP function */ -public class TestVlookup { +class TestVlookup { @Test void testFullColumnAreaRef61841() throws IOException { diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/usermodel/TestEmbedOLEPackage.java b/src/ooxml/testcases/org/apache/poi/ss/tests/usermodel/TestEmbedOLEPackage.java index 944052b53a..001ea8ebce 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/usermodel/TestEmbedOLEPackage.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/usermodel/TestEmbedOLEPackage.java @@ -65,7 +65,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -public class TestEmbedOLEPackage { +class TestEmbedOLEPackage { private static byte[] samplePPT, samplePPTX, samplePNG; private static final POIDataSamples ssamples = POIDataSamples.getSpreadSheetInstance(); diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/usermodel/TestXSSFRangeCopier.java b/src/ooxml/testcases/org/apache/poi/ss/tests/usermodel/TestXSSFRangeCopier.java index 777fb1a5ec..3ee318abdf 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/usermodel/TestXSSFRangeCopier.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/usermodel/TestXSSFRangeCopier.java @@ -35,7 +35,7 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -public class TestXSSFRangeCopier extends BaseTestRangeCopier { +class TestXSSFRangeCopier extends BaseTestRangeCopier { public TestXSSFRangeCopier() { super(); workbook = new XSSFWorkbook(); diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestSXSSFCellUtil.java b/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestSXSSFCellUtil.java index 33406376b5..0e2511f36d 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestSXSSFCellUtil.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestSXSSFCellUtil.java @@ -20,7 +20,7 @@ package org.apache.poi.ss.tests.util; import org.apache.poi.ss.util.BaseTestCellUtil; import org.apache.poi.xssf.SXSSFITestDataProvider; -public class TestSXSSFCellUtil extends BaseTestCellUtil { +class TestSXSSFCellUtil extends BaseTestCellUtil { public TestSXSSFCellUtil() { super(SXSSFITestDataProvider.instance); } diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestXSSFCellUtil.java b/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestXSSFCellUtil.java index 50fc0cfde5..40f16dbe61 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestXSSFCellUtil.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestXSSFCellUtil.java @@ -20,7 +20,7 @@ package org.apache.poi.ss.tests.util; import org.apache.poi.ss.util.BaseTestCellUtil; import org.apache.poi.xssf.XSSFITestDataProvider; -public class TestXSSFCellUtil extends BaseTestCellUtil { +class TestXSSFCellUtil extends BaseTestCellUtil { public TestXSSFCellUtil() { super(XSSFITestDataProvider.instance); } diff --git a/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestXSSFPropertyTemplate.java b/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestXSSFPropertyTemplate.java index 5cd9066479..c6f9f59cc0 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestXSSFPropertyTemplate.java +++ b/src/ooxml/testcases/org/apache/poi/ss/tests/util/TestXSSFPropertyTemplate.java @@ -35,7 +35,7 @@ import org.apache.poi.ss.util.PropertyTemplate; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.junit.jupiter.api.Test; -public class TestXSSFPropertyTemplate { +class TestXSSFPropertyTemplate { @Test void applyBorders() throws IOException { |