@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); RelatedMediaReferencesResponse sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); RelatedMediaReferencesResponse differentObject = getTestObject(); differentObject.setExceptionErrorMessage("Different"); assertFalse(getTestObject().equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof RelatedMediaReferencesResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } RelatedMediaReferencesResponse that = (RelatedMediaReferencesResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); }
RelatedMediaReferencesResponse extends PagedResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof RelatedMediaReferencesResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } RelatedMediaReferencesResponse that = (RelatedMediaReferencesResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); } }
RelatedMediaReferencesResponse extends PagedResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof RelatedMediaReferencesResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } RelatedMediaReferencesResponse that = (RelatedMediaReferencesResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); } RelatedMediaReferencesResponse();  RelatedMediaReferencesResponse(RelatedMediaReferencesResponse template); }
RelatedMediaReferencesResponse extends PagedResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof RelatedMediaReferencesResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } RelatedMediaReferencesResponse that = (RelatedMediaReferencesResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); } RelatedMediaReferencesResponse();  RelatedMediaReferencesResponse(RelatedMediaReferencesResponse template); List<RelatedMediaReference> getList(); void setList(List<RelatedMediaReference> responseObjects); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
RelatedMediaReferencesResponse extends PagedResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof RelatedMediaReferencesResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } RelatedMediaReferencesResponse that = (RelatedMediaReferencesResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); } RelatedMediaReferencesResponse();  RelatedMediaReferencesResponse(RelatedMediaReferencesResponse template); List<RelatedMediaReference> getList(); void setList(List<RelatedMediaReference> responseObjects); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }