diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2021-01-09 18:24:51 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2021-01-09 18:24:51 +0000 |
commit | a4ed4359cce220abe549f870df84b0cd4895b881 (patch) | |
tree | e2d349b2aba0486b74f23ec7b02e60a40be418e6 /src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPicture.java | |
parent | 1d676a098d667f7132f7d62cd76f3f33fb1b17fe (diff) | |
download | poi-a4ed4359cce220abe549f870df84b0cd4895b881.tar.gz poi-a4ed4359cce220abe549f870df84b0cd4895b881.zip |
Sonar fixes
JUnit5 test classes and methods should have default package visibility
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885308 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPicture.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPicture.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPicture.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPicture.java index 51eea4a289..471ab0c601 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPicture.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPicture.java @@ -53,7 +53,7 @@ public final class TestHSSFPicture extends BaseTestPicture { * Bug # 45829 reported ArithmeticException (/ by zero) when resizing png with zero DPI. */ @Test - public void bug45829() throws IOException { + void bug45829() throws IOException { try (HSSFWorkbook wb = new HSSFWorkbook()) { HSSFSheet sh1 = wb.createSheet(); HSSFPatriarch p1 = sh1.createDrawingPatriarch(); @@ -67,7 +67,7 @@ public final class TestHSSFPicture extends BaseTestPicture { @Test - public void addPictures() throws IOException { + void addPictures() throws IOException { try (HSSFWorkbook wb1 = new HSSFWorkbook()) { HSSFSheet sh = wb1.createSheet("Pictures"); @@ -166,7 +166,7 @@ public final class TestHSSFPicture extends BaseTestPicture { @SuppressWarnings("unused") @Test - public void bsePictureRef() throws IOException { + void bsePictureRef() throws IOException { try (HSSFWorkbook wb = new HSSFWorkbook()) { HSSFSheet sh = wb.createSheet("Pictures"); HSSFPatriarch dr = sh.createDrawingPatriarch(); @@ -193,7 +193,7 @@ public final class TestHSSFPicture extends BaseTestPicture { } @Test - public void readExistingImage() throws IOException { + void readExistingImage() throws IOException { try (HSSFWorkbook wb = openSampleWorkbook("drawings.xls")) { HSSFSheet sheet = wb.getSheet("picture"); HSSFPatriarch drawing = sheet.getDrawingPatriarch(); @@ -206,7 +206,7 @@ public final class TestHSSFPicture extends BaseTestPicture { @SuppressWarnings("resource") @Test - public void setGetProperties() throws IOException { + void setGetProperties() throws IOException { try (HSSFWorkbook wb1 = new HSSFWorkbook()) { HSSFSheet sh = wb1.createSheet("Pictures"); @@ -234,7 +234,7 @@ public final class TestHSSFPicture extends BaseTestPicture { @SuppressWarnings("resource") @Test - public void bug49658() throws IOException { + void bug49658() throws IOException { // test if inserted EscherMetafileBlip will be read again try (HSSFWorkbook wb1 = new HSSFWorkbook()) { |