aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-01-09 00:46:52 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-01-09 00:46:52 +0000
commita7d741fd17acea82e8b0c91a5bc4b0c51a0c5ba7 (patch)
treef38d2a83d7132dbd3406a2afdc51a9960e65cb62 /src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java
parent606a313c4c4f9783ddea17a4027f7628ab5f387f (diff)
downloadpoi-a7d741fd17acea82e8b0c91a5bc4b0c51a0c5ba7.tar.gz
poi-a7d741fd17acea82e8b0c91a5bc4b0c51a0c5ba7.zip
Sonar fixes
JUnit5 test classes and methods should have default package visibility git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885283 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java')
-rw-r--r--src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java b/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java
index fb0404705e..659466f9aa 100644
--- a/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java
+++ b/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java
@@ -49,20 +49,20 @@ public class TestXSSFCloneSheet extends BaseTestCloneSheet {
}
@Test
- public void testCloneSheetIntStringValidName() {
+ void testCloneSheetIntStringValidName() {
XSSFSheet cloned = wb.cloneSheet(0, OTHER_SHEET_NAME);
assertEquals(OTHER_SHEET_NAME, cloned.getSheetName());
assertEquals(2, wb.getNumberOfSheets());
}
@Test
- public void testCloneSheetIntStringInvalidName() {
+ void testCloneSheetIntStringInvalidName() {
assertThrows(IllegalArgumentException.class, () -> wb.cloneSheet(0, VALID_SHEET_NAME));
assertEquals(1, wb.getNumberOfSheets());
}
@Test
- public void test60512() throws IOException {
+ void test60512() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("60512.xlsm");
assertEquals(1, wb.getNumberOfSheets());
@@ -79,7 +79,7 @@ public class TestXSSFCloneSheet extends BaseTestCloneSheet {
}
@Test
- public void test61605() throws IOException {
+ void test61605() throws IOException {
try (Workbook template_wb = XSSFTestDataSamples.openSampleWorkbook("61605.xlsx")) {
Sheet template_sh = template_wb.getSheetAt(0);
assertNotNull(template_sh);