}
return false;
}
+
+ public int hashCode() {
+ return super.hashCode();
+ }
}
}
return false;
}
+
+ public int hashCode() {
+ return super.hashCode();
+ }
}
return false;
}
+ public int hashCode() {
+ return super.hashCode();
+ }
+
}
}
return false;
}
+
+ public int hashCode() {
+ return super.hashCode();
+ }
}
}
return false;
}
+
+ public int hashCode() {
+ return super.hashCode();
+ }
}
}
return false;
}
+
+ public int hashCode() {
+ return super.hashCode();
+ }
}
public void equals() throws Exception {
assert !entity2.equals(entity1);
assert entity2.equals(entity2);
-/* MsbRegisterEntity entity = new MsbRegisterEntity();
- assert entity2.equals(entity1);
- assert entity2.equals(entity2);
- assert !entity2.equals(null);
- assert !entity.equals(entity2);
- assert !entity2.equals(entity);*/
+ assert entity2.hashCode() == entity2.hashCode();
+ assert entity2.hashCode() != entity1.hashCode();
}
@Test
public void equals() throws Exception {
assert !entity2.equals(entity1);
assert entity2.equals(entity2);
+ assert entity2.hashCode() == entity2.hashCode();
+ assert entity2.hashCode() != entity1.hashCode();
}
@Test
public void equals() throws Exception {
assert !entity2.equals(entity1);
assert entity2.equals(entity2);
+ assert entity2.hashCode() == entity2.hashCode();
+ assert entity2.hashCode() != entity1.hashCode();
}
@Test
public void equals() throws Exception {
assert !entity2.equals(entity1);
assert entity2.equals(entity2);
+ assert entity2.hashCode() == entity2.hashCode();
+ assert entity2.hashCode() != entity1.hashCode();
}
@Test
public void equals() throws Exception {
assert !portInfo2.equals(portInfo1);
assert portInfo2.equals(portInfo2);
+ assert portInfo2.hashCode() == portInfo2.hashCode();
+ assert portInfo2.hashCode() != portInfo1.hashCode();
}
@Test
public void equals() throws Exception {
assert !entity2.equals(entity1);
assert entity2.equals(entity2);
+ assert entity2.hashCode() == entity2.hashCode();
+ assert entity2.hashCode() != entity1.hashCode();
}
@Test