@Test public void testHashCode(){ String id ="user"; String dn ="someDn"; String email="user@email.com"; String name ="User Name"; FideliusUserEntry fideliusUserEntry = new FideliusUserEntry(id,dn,email,name); Assert.assertEquals("Hashcode", fideliusUserEntry.hashCode(), Objects.hash(id,dn,email,name)); }
@Override public int hashCode() { return Objects.hashCode(userId, dn, email, name); }
FideliusUserEntry { @Override public int hashCode() { return Objects.hashCode(userId, dn, email, name); } }
FideliusUserEntry { @Override public int hashCode() { return Objects.hashCode(userId, dn, email, name); } FideliusUserEntry(String userId, String dn, String email, String name); }
FideliusUserEntry { @Override public int hashCode() { return Objects.hashCode(userId, dn, email, name); } FideliusUserEntry(String userId, String dn, String email, String name); String getUserId(); String getEmail(); String getName(); String getDn(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
FideliusUserEntry { @Override public int hashCode() { return Objects.hashCode(userId, dn, email, name); } FideliusUserEntry(String userId, String dn, String email, String name); String getUserId(); String getEmail(); String getName(); String getDn(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }