diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2020-12-26 00:08:19 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2020-12-26 00:08:19 +0000 |
commit | d121353f612c6efbcf156e166158f1d403e8697e (patch) | |
tree | 078baea3d2ad8cb33ae4752e677aa8887372389f /src/testcases | |
parent | be1afe5ff586cfc01c68ca6dc58e84f951aca2ef (diff) | |
download | poi-d121353f612c6efbcf156e166158f1d403e8697e.tar.gz poi-d121353f612c6efbcf156e166158f1d403e8697e.zip |
Sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884807 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java | 4 | ||||
-rw-r--r-- | src/testcases/org/apache/poi/ss/formula/functions/TestSumifs.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 342335e267..ff955df1e3 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -1640,8 +1640,8 @@ public final class TestBugs extends BaseTestBugzillaIssues { } } assertNotNull(tr); - assertEquals(1, tr._tabids.length); - assertEquals(0, tr._tabids[0]); + assertEquals(1, tr.getTabIdSize()); + assertEquals(0, tr.getTabIdAt(0)); // Ensure the print setup assertEquals("new_sheet!$A$1:$C$1", wb2.getPrintArea(0)); diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestSumifs.java b/src/testcases/org/apache/poi/ss/formula/functions/TestSumifs.java index 135cd1f1a6..667c58f0d6 100644 --- a/src/testcases/org/apache/poi/ss/formula/functions/TestSumifs.java +++ b/src/testcases/org/apache/poi/ss/formula/functions/TestSumifs.java @@ -263,7 +263,7 @@ public final class TestSumifs { HSSFSheet example3 = wb.getSheet("Example 3"); HSSFCell ex3cell = example3.getRow(5).getCell(2); fe.evaluate(ex3cell); - assertEquals(8,8, ex3cell.getNumericCellValue()); + assertEquals(8.8, ex3cell.getNumericCellValue(), 0); HSSFSheet example4 = wb.getSheet("Example 4"); HSSFCell ex4cell = example4.getRow(8).getCell(2); |