diff options
author | Javen O'Neal <onealj@apache.org> | 2016-06-17 10:17:47 +0000 |
---|---|---|
committer | Javen O'Neal <onealj@apache.org> | 2016-06-17 10:17:47 +0000 |
commit | 3f4d479b1379e76c4bc2788be24694cc63214309 (patch) | |
tree | 657cdef3749c58f7a760ed5bfac6401b617ec20e /src/testcases/org/apache/poi/ss | |
parent | 3984215fbd1647fcf7a1a8afa8883b7d6e27a630 (diff) | |
download | poi-3f4d479b1379e76c4bc2788be24694cc63214309.tar.gz poi-3f4d479b1379e76c4bc2788be24694cc63214309.zip |
bug 59279: add unit test for CellComment.equals and CellComment.hashCode
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748827 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss')
-rw-r--r-- | src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java index dc11e6cb5f..17de8cf4a9 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java @@ -131,6 +131,10 @@ public abstract class BaseTestCellComment { assertEquals(cellRow, comment.getRow()); assertEquals(cellColumn, comment.getColumn()); assertFalse(comment.isVisible()); + + // Test Comment.equals and Comment.hashCode + assertEquals(comment, cell.getCellComment()); + assertEquals(comment.hashCode(), cell.getCellComment().hashCode()); wb3.close(); } |