ExternalIdentityProviderDefinition extends AbstractIdentityProviderDefinition { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; ExternalIdentityProviderDefinition that = (ExternalIdentityProviderDefinition) o; if (addShadowUserOnLogin != that.addShadowUserOnLogin) return false; if(this.isStoreCustomAttributes() != that.isStoreCustomAttributes()) return false; if (getExternalGroupsWhitelist() != null ? !getExternalGroupsWhitelist().equals(that.getExternalGroupsWhitelist()) : that.getExternalGroupsWhitelist() != null) return false; return Objects.equals(attributeMappings, that.attributeMappings); }  List<String> getExternalGroupsWhitelist(); void setExternalGroupsWhitelist(List<String> externalGroupsWhitelist); @JsonIgnore void addWhiteListedGroup(String group); void setAttributeMappings(Map<String, Object> attributeMappings); Map<String, Object> getAttributeMappings(); @JsonIgnore void addAttributeMapping(String key, Object value); boolean isAddShadowUserOnLogin(); void setAddShadowUserOnLogin(boolean addShadowUserOnLogin); @Override boolean equals(Object o); @Override int hashCode(); boolean isStoreCustomAttributes(); void setStoreCustomAttributes(boolean storeCustomAttributes); static final String GROUP_ATTRIBUTE_NAME; static final String EMAIL_ATTRIBUTE_NAME; static final String GIVEN_NAME_ATTRIBUTE_NAME; static final String FAMILY_NAME_ATTRIBUTE_NAME; static final String PHONE_NUMBER_ATTRIBUTE_NAME; static final String EMAIL_VERIFIED_ATTRIBUTE_NAME; static final String USER_ATTRIBUTE_PREFIX; static final String USER_NAME_ATTRIBUTE_NAME; static final String STORE_CUSTOM_ATTRIBUTES_NAME; static final String EXTERNAL_GROUPS_WHITELIST; static final String ATTRIBUTE_MAPPINGS; }
@Test public void testEquals() { ExternalIdentityProviderDefinition definition1 = new ExternalIdentityProviderDefinition(); definition1.setAddShadowUserOnLogin(true); ExternalIdentityProviderDefinition definition2 = new ExternalIdentityProviderDefinition(); definition2.setAddShadowUserOnLogin(false); assertNotEquals(definition1, definition2); definition2.setAddShadowUserOnLogin(true); assertEquals(definition1, definition2); }