]> source.dussan.org Git - poi.git/commitdiff
bug 59279: add unit test for CellComment.equals and CellComment.hashCode
authorJaven O'Neal <onealj@apache.org>
Fri, 17 Jun 2016 10:17:47 +0000 (10:17 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 17 Jun 2016 10:17:47 +0000 (10:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748827 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java

index dc11e6cb5f5572a37316f2ec0b183ae4d7868011..17de8cf4a92f882faac25ae19dedb521b0d8fdf3 100644 (file)
@@ -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();
     }