@Test public void testEquals() { assertTrue(getTestObject().equals(getTestObject())); TypeDefGallery testObject = getTestObject(); assertTrue(testObject.equals(testObject)); assertTrue(testObject.equals(getTestObject())); assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("A String")); TypeDefGallery differentObject = getTestObject(); differentObject.setTypeDefs(new ArrayList<>()); assertFalse(testObject.equals(differentObject)); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof TypeDefGallery)) { return false; } TypeDefGallery that = (TypeDefGallery) o; return Objects.equals(getAttributeTypeDefs(), that.getAttributeTypeDefs()) && Objects.equals(getTypeDefs(), that.getTypeDefs()); }
TypeDefGallery extends TypeDefElementHeader { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof TypeDefGallery)) { return false; } TypeDefGallery that = (TypeDefGallery) o; return Objects.equals(getAttributeTypeDefs(), that.getAttributeTypeDefs()) && Objects.equals(getTypeDefs(), that.getTypeDefs()); } }
TypeDefGallery extends TypeDefElementHeader { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof TypeDefGallery)) { return false; } TypeDefGallery that = (TypeDefGallery) o; return Objects.equals(getAttributeTypeDefs(), that.getAttributeTypeDefs()) && Objects.equals(getTypeDefs(), that.getTypeDefs()); } TypeDefGallery();  TypeDefGallery(TypeDefGallery    template); }
TypeDefGallery extends TypeDefElementHeader { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof TypeDefGallery)) { return false; } TypeDefGallery that = (TypeDefGallery) o; return Objects.equals(getAttributeTypeDefs(), that.getAttributeTypeDefs()) && Objects.equals(getTypeDefs(), that.getTypeDefs()); } TypeDefGallery();  TypeDefGallery(TypeDefGallery    template); List<AttributeTypeDef> getAttributeTypeDefs(); void setAttributeTypeDefs(List<AttributeTypeDef> attributeTypeDefs); ArrayList<TypeDef> getTypeDefs(); void setTypeDefs(List<TypeDef> typeDefs); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
TypeDefGallery extends TypeDefElementHeader { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof TypeDefGallery)) { return false; } TypeDefGallery that = (TypeDefGallery) o; return Objects.equals(getAttributeTypeDefs(), that.getAttributeTypeDefs()) && Objects.equals(getTypeDefs(), that.getTypeDefs()); } TypeDefGallery();  TypeDefGallery(TypeDefGallery    template); List<AttributeTypeDef> getAttributeTypeDefs(); void setAttributeTypeDefs(List<AttributeTypeDef> attributeTypeDefs); ArrayList<TypeDef> getTypeDefs(); void setTypeDefs(List<TypeDef> typeDefs); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }