poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1748827 - /poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java
Date Fri, 17 Jun 2016 10:17:47 GMT
Author: onealj
Date: Fri Jun 17 10:17:47 2016
New Revision: 1748827

URL: http://svn.apache.org/viewvc?rev=1748827&view=rev
Log:
bug 59279: add unit test for CellComment.equals and CellComment.hashCode

Modified:
    poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java

Modified: poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java?rev=1748827&r1=1748826&r2=1748827&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestCellComment.java Fri Jun 17
10:17:47 2016
@@ -131,6 +131,10 @@ public abstract class BaseTestCellCommen
         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();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message