@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); SchemaAttributeRelationship sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof SchemaAttributeRelationship)) { return false; } SchemaAttributeRelationship that = (SchemaAttributeRelationship) objectToCompare; return Objects.equals(getLinkGUID(), that.getLinkGUID()) && Objects.equals(getLinkType(), that.getLinkType()) && Objects.equals(getLinkedAttributeName(), that.getLinkedAttributeName()) && Objects.equals(getLinkProperties(), that.getLinkProperties()) && Objects.equals(getLinkedAttributeGUID(), that.getLinkedAttributeGUID()); }
SchemaAttributeRelationship extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof SchemaAttributeRelationship)) { return false; } SchemaAttributeRelationship that = (SchemaAttributeRelationship) objectToCompare; return Objects.equals(getLinkGUID(), that.getLinkGUID()) && Objects.equals(getLinkType(), that.getLinkType()) && Objects.equals(getLinkedAttributeName(), that.getLinkedAttributeName()) && Objects.equals(getLinkProperties(), that.getLinkProperties()) && Objects.equals(getLinkedAttributeGUID(), that.getLinkedAttributeGUID()); } }
SchemaAttributeRelationship extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof SchemaAttributeRelationship)) { return false; } SchemaAttributeRelationship that = (SchemaAttributeRelationship) objectToCompare; return Objects.equals(getLinkGUID(), that.getLinkGUID()) && Objects.equals(getLinkType(), that.getLinkType()) && Objects.equals(getLinkedAttributeName(), that.getLinkedAttributeName()) && Objects.equals(getLinkProperties(), that.getLinkProperties()) && Objects.equals(getLinkedAttributeGUID(), that.getLinkedAttributeGUID()); } SchemaAttributeRelationship();  SchemaAttributeRelationship(SchemaAttributeRelationship template); }
SchemaAttributeRelationship extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof SchemaAttributeRelationship)) { return false; } SchemaAttributeRelationship that = (SchemaAttributeRelationship) objectToCompare; return Objects.equals(getLinkGUID(), that.getLinkGUID()) && Objects.equals(getLinkType(), that.getLinkType()) && Objects.equals(getLinkedAttributeName(), that.getLinkedAttributeName()) && Objects.equals(getLinkProperties(), that.getLinkProperties()) && Objects.equals(getLinkedAttributeGUID(), that.getLinkedAttributeGUID()); } SchemaAttributeRelationship();  SchemaAttributeRelationship(SchemaAttributeRelationship template); String getLinkGUID(); void setLinkGUID(String linkGUID); String getLinkType(); void setLinkType(String linkType); String getLinkedAttributeName(); void setLinkedAttributeName(String linkedAttributeName); Map<String, Object> getLinkProperties(); void setLinkProperties(Map<String, Object> linkProperties); String getLinkedAttributeGUID(); void setLinkedAttributeGUID(String linkedAttributeGUID); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
SchemaAttributeRelationship extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof SchemaAttributeRelationship)) { return false; } SchemaAttributeRelationship that = (SchemaAttributeRelationship) objectToCompare; return Objects.equals(getLinkGUID(), that.getLinkGUID()) && Objects.equals(getLinkType(), that.getLinkType()) && Objects.equals(getLinkedAttributeName(), that.getLinkedAttributeName()) && Objects.equals(getLinkProperties(), that.getLinkProperties()) && Objects.equals(getLinkedAttributeGUID(), that.getLinkedAttributeGUID()); } SchemaAttributeRelationship();  SchemaAttributeRelationship(SchemaAttributeRelationship template); String getLinkGUID(); void setLinkGUID(String linkGUID); String getLinkType(); void setLinkType(String linkType); String getLinkedAttributeName(); void setLinkedAttributeName(String linkedAttributeName); Map<String, Object> getLinkProperties(); void setLinkProperties(Map<String, Object> linkProperties); String getLinkedAttributeGUID(); void setLinkedAttributeGUID(String linkedAttributeGUID); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }