From 606a313c4c4f9783ddea17a4027f7628ab5f387f Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Fri, 8 Jan 2021 23:50:02 +0000 Subject: Sonar fixes JUnit5 test classes and methods should have default package visibility git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885281 13f79535-47bb-0310-9956-ffa450edef68 --- src/testcases/org/apache/poi/ss/usermodel/BaseTestCloneSheet.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/testcases/org/apache/poi/ss/usermodel/BaseTestCloneSheet.java') diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestCloneSheet.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestCloneSheet.java index 22c5743628..7d9cd0c448 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestCloneSheet.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestCloneSheet.java @@ -40,7 +40,7 @@ public abstract class BaseTestCloneSheet { } @Test - public void testCloneSheetBasic() throws IOException{ + void testCloneSheetBasic() throws IOException{ Workbook b = _testDataProvider.createWorkbook(); Sheet s = b.createSheet("Test"); assertEquals(0, s.addMergedRegion(new CellRangeAddress(0, 1, 0, 1))); @@ -55,7 +55,7 @@ public abstract class BaseTestCloneSheet { * Ensures that pagebreak cloning works properly */ @Test - public void testPageBreakClones() throws IOException { + void testPageBreakClones() throws IOException { Workbook b = _testDataProvider.createWorkbook(); Sheet s = b.createSheet("Test"); s.setRowBreak(3); @@ -73,7 +73,7 @@ public abstract class BaseTestCloneSheet { } @Test - public void testCloneSheetIntValid() { + void testCloneSheetIntValid() { Workbook wb = _testDataProvider.createWorkbook(); wb.createSheet("Sheet01"); wb.cloneSheet(0); @@ -82,7 +82,7 @@ public abstract class BaseTestCloneSheet { } @Test - public void testCloneSheetIntInvalid() { + void testCloneSheetIntInvalid() { Workbook wb = _testDataProvider.createWorkbook(); wb.createSheet("Sheet01"); assertThrows(IllegalArgumentException.class, () -> wb.cloneSheet(1)); -- cgit v1.2.3