@Test public void verifyThatHashCodeDisregardsCase_LDAP259() { LdapRdnComponent component1 = new LdapRdnComponent("cn", "john doe"); LdapRdnComponent component2 = new LdapRdnComponent("CN", "John Doe"); assertThat(component2.hashCode()).as("Should be equal").isEqualTo(component1.hashCode()); }
public int hashCode() { return key.toUpperCase().hashCode() ^ value.toUpperCase().hashCode(); }
LdapRdnComponent implements Comparable, Serializable { public int hashCode() { return key.toUpperCase().hashCode() ^ value.toUpperCase().hashCode(); } }
LdapRdnComponent implements Comparable, Serializable { public int hashCode() { return key.toUpperCase().hashCode() ^ value.toUpperCase().hashCode(); } LdapRdnComponent(String key, String value);  LdapRdnComponent(String key, String value, boolean decodeValue); }
LdapRdnComponent implements Comparable, Serializable { public int hashCode() { return key.toUpperCase().hashCode() ^ value.toUpperCase().hashCode(); } LdapRdnComponent(String key, String value);  LdapRdnComponent(String key, String value, boolean decodeValue); String getKey(); void setKey(String key); String getValue(); void setValue(String value); String toString(); String getLdapEncoded(); String encodeUrl(); int hashCode(); boolean equals(Object obj); int compareTo(Object obj); LdapRdnComponent immutableLdapRdnComponent(); }
LdapRdnComponent implements Comparable, Serializable { public int hashCode() { return key.toUpperCase().hashCode() ^ value.toUpperCase().hashCode(); } LdapRdnComponent(String key, String value);  LdapRdnComponent(String key, String value, boolean decodeValue); String getKey(); void setKey(String key); String getValue(); void setValue(String value); String toString(); String getLdapEncoded(); String encodeUrl(); int hashCode(); boolean equals(Object obj); int compareTo(Object obj); LdapRdnComponent immutableLdapRdnComponent(); static final boolean DONT_DECODE_VALUE; }