@Test public void testEquals() { assertTrue(getTestObject().equals(getTestObject())); ClassificationEntityExtension testObject = getTestObject(); assertTrue(testObject.equals(testObject)); assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("A String")); ClassificationEntityExtension differentObject = getTestObject(); differentObject.setClassification(new Classification()); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setEntityToClassify(new EntityProxy()); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setClassification(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setEntityToClassify(null); assertFalse(testObject.equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } ClassificationEntityExtension that = (ClassificationEntityExtension) objectToCompare; return Objects.equals(getClassification(), that.getClassification()) && Objects.equals(getEntityToClassify(), that.getEntityToClassify()); }
ClassificationEntityExtension extends InstanceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } ClassificationEntityExtension that = (ClassificationEntityExtension) objectToCompare; return Objects.equals(getClassification(), that.getClassification()) && Objects.equals(getEntityToClassify(), that.getEntityToClassify()); } }
ClassificationEntityExtension extends InstanceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } ClassificationEntityExtension that = (ClassificationEntityExtension) objectToCompare; return Objects.equals(getClassification(), that.getClassification()) && Objects.equals(getEntityToClassify(), that.getEntityToClassify()); } ClassificationEntityExtension();  ClassificationEntityExtension(ClassificationEntityExtension  template); }
ClassificationEntityExtension extends InstanceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } ClassificationEntityExtension that = (ClassificationEntityExtension) objectToCompare; return Objects.equals(getClassification(), that.getClassification()) && Objects.equals(getEntityToClassify(), that.getEntityToClassify()); } ClassificationEntityExtension();  ClassificationEntityExtension(ClassificationEntityExtension  template); Classification getClassification(); void setClassification(Classification classification); EntityProxy getEntityToClassify(); void setEntityToClassify(EntityProxy entityToClassify); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
ClassificationEntityExtension extends InstanceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } ClassificationEntityExtension that = (ClassificationEntityExtension) objectToCompare; return Objects.equals(getClassification(), that.getClassification()) && Objects.equals(getEntityToClassify(), that.getEntityToClassify()); } ClassificationEntityExtension();  ClassificationEntityExtension(ClassificationEntityExtension  template); Classification getClassification(); void setClassification(Classification classification); EntityProxy getEntityToClassify(); void setEntityToClassify(EntityProxy entityToClassify); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }