Permalink
Browse files

hashCode check added

  • Loading branch information...
1 parent 8bdf782 commit b4c88cdb7f541513686576bd3387850a9579e12a @michelegonella committed Sep 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 zen-dataobject/src/test/java/com/nominanuda/dataobject/HashCodeEqualsTest.java
@@ -70,7 +70,10 @@ public void test4() {
assertTrue(s.contains(o2));
assertEquals(2, s.size());
assertFalse(o1.equals(o2));
+ int h21 = o2.hashCode();
o2.with("a", 1);
+ int h22 = o2.hashCode();
+ assertTrue(h21 != h22);
assertTrue(s.contains(o2));
assertEquals(o1, o2);
assertEquals(2, s.size());

0 comments on commit b4c88cd

Please sign in to comment.