@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); GlossaryTermResponse sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); GlossaryTermResponse differentObject = getTestObject(); differentObject.setExceptionErrorMessage("Different"); assertFalse(getTestObject().equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof GlossaryTermResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermResponse that = (GlossaryTermResponse) objectToCompare; return Objects.equals(getGlossaryTerm(), that.getGlossaryTerm()); }
GlossaryTermResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof GlossaryTermResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermResponse that = (GlossaryTermResponse) objectToCompare; return Objects.equals(getGlossaryTerm(), that.getGlossaryTerm()); } }
GlossaryTermResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof GlossaryTermResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermResponse that = (GlossaryTermResponse) objectToCompare; return Objects.equals(getGlossaryTerm(), that.getGlossaryTerm()); } GlossaryTermResponse();  GlossaryTermResponse(GlossaryTermResponse template); }
GlossaryTermResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof GlossaryTermResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermResponse that = (GlossaryTermResponse) objectToCompare; return Objects.equals(getGlossaryTerm(), that.getGlossaryTerm()); } GlossaryTermResponse();  GlossaryTermResponse(GlossaryTermResponse template); GlossaryTerm getGlossaryTerm(); void setGlossaryTerm(GlossaryTerm glossaryTerm); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
GlossaryTermResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof GlossaryTermResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermResponse that = (GlossaryTermResponse) objectToCompare; return Objects.equals(getGlossaryTerm(), that.getGlossaryTerm()); } GlossaryTermResponse();  GlossaryTermResponse(GlossaryTermResponse template); GlossaryTerm getGlossaryTerm(); void setGlossaryTerm(GlossaryTerm glossaryTerm); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }