@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); AssetResponse sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); AssetResponse differentObject = getTestObject(); differentObject.setExceptionErrorMessage("Different"); assertFalse(getTestObject().equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetResponse that = (AssetResponse) objectToCompare; return getCertificationCount() == that.getCertificationCount() && getCommentCount() == that.getCommentCount() && getConnectionCount() == that.getConnectionCount() && getExternalIdentifierCount() == that.getExternalIdentifierCount() && getExternalReferencesCount() == that.getExternalReferencesCount() && getInformalTagCount() == that.getInformalTagCount() && getLicenseCount() == that.getLicenseCount() && getLikeCount() == that.getLikeCount() && getKnownLocationsCount() == that.getKnownLocationsCount() && getNoteLogsCount() == that.getNoteLogsCount() && getRatingsCount() == that.getRatingsCount() && getRelatedAssetCount() == that.getRelatedAssetCount() && getRelatedMediaReferenceCount() == that.getRelatedMediaReferenceCount() && getSchemaType() == that.getSchemaType() && getLastAttachment() == that.getLastAttachment() && Objects.equals(getAsset(), that.getAsset()); }
AssetResponse extends OCFOMASAPIResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetResponse that = (AssetResponse) objectToCompare; return getCertificationCount() == that.getCertificationCount() && getCommentCount() == that.getCommentCount() && getConnectionCount() == that.getConnectionCount() && getExternalIdentifierCount() == that.getExternalIdentifierCount() && getExternalReferencesCount() == that.getExternalReferencesCount() && getInformalTagCount() == that.getInformalTagCount() && getLicenseCount() == that.getLicenseCount() && getLikeCount() == that.getLikeCount() && getKnownLocationsCount() == that.getKnownLocationsCount() && getNoteLogsCount() == that.getNoteLogsCount() && getRatingsCount() == that.getRatingsCount() && getRelatedAssetCount() == that.getRelatedAssetCount() && getRelatedMediaReferenceCount() == that.getRelatedMediaReferenceCount() && getSchemaType() == that.getSchemaType() && getLastAttachment() == that.getLastAttachment() && Objects.equals(getAsset(), that.getAsset()); } }
AssetResponse extends OCFOMASAPIResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetResponse that = (AssetResponse) objectToCompare; return getCertificationCount() == that.getCertificationCount() && getCommentCount() == that.getCommentCount() && getConnectionCount() == that.getConnectionCount() && getExternalIdentifierCount() == that.getExternalIdentifierCount() && getExternalReferencesCount() == that.getExternalReferencesCount() && getInformalTagCount() == that.getInformalTagCount() && getLicenseCount() == that.getLicenseCount() && getLikeCount() == that.getLikeCount() && getKnownLocationsCount() == that.getKnownLocationsCount() && getNoteLogsCount() == that.getNoteLogsCount() && getRatingsCount() == that.getRatingsCount() && getRelatedAssetCount() == that.getRelatedAssetCount() && getRelatedMediaReferenceCount() == that.getRelatedMediaReferenceCount() && getSchemaType() == that.getSchemaType() && getLastAttachment() == that.getLastAttachment() && Objects.equals(getAsset(), that.getAsset()); } AssetResponse();  AssetResponse(AssetResponse template); }
AssetResponse extends OCFOMASAPIResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetResponse that = (AssetResponse) objectToCompare; return getCertificationCount() == that.getCertificationCount() && getCommentCount() == that.getCommentCount() && getConnectionCount() == that.getConnectionCount() && getExternalIdentifierCount() == that.getExternalIdentifierCount() && getExternalReferencesCount() == that.getExternalReferencesCount() && getInformalTagCount() == that.getInformalTagCount() && getLicenseCount() == that.getLicenseCount() && getLikeCount() == that.getLikeCount() && getKnownLocationsCount() == that.getKnownLocationsCount() && getNoteLogsCount() == that.getNoteLogsCount() && getRatingsCount() == that.getRatingsCount() && getRelatedAssetCount() == that.getRelatedAssetCount() && getRelatedMediaReferenceCount() == that.getRelatedMediaReferenceCount() && getSchemaType() == that.getSchemaType() && getLastAttachment() == that.getLastAttachment() && Objects.equals(getAsset(), that.getAsset()); } AssetResponse();  AssetResponse(AssetResponse template); Asset getAsset(); void setAsset(Asset asset); int getCertificationCount(); void setCertificationCount(int certificationCount); int getCommentCount(); void setCommentCount(int commentCount); int getConnectionCount(); void setConnectionCount(int connectionCount); int getExternalIdentifierCount(); void setExternalIdentifierCount(int externalIdentifierCount); int getExternalReferencesCount(); void setExternalReferencesCount(int externalReferencesCount); int getInformalTagCount(); void setInformalTagCount(int informalTagCount); int getLicenseCount(); void setLicenseCount(int licenseCount); int getLikeCount(); void setLikeCount(int likeCount); int getKnownLocationsCount(); void setKnownLocationsCount(int knownLocationsCount); int getNoteLogsCount(); void setNoteLogsCount(int noteLogsCount); int getRatingsCount(); void setRatingsCount(int ratingsCount); int getRelatedAssetCount(); void setRelatedAssetCount(int relatedAssetCount); int getRelatedMediaReferenceCount(); void setRelatedMediaReferenceCount(int relatedMediaReferenceCount); SchemaType getSchemaType(); void setSchemaType(SchemaType schemaType); LastAttachment getLastAttachment(); void setLastAttachment(LastAttachment lastAttachment); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
AssetResponse extends OCFOMASAPIResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetResponse that = (AssetResponse) objectToCompare; return getCertificationCount() == that.getCertificationCount() && getCommentCount() == that.getCommentCount() && getConnectionCount() == that.getConnectionCount() && getExternalIdentifierCount() == that.getExternalIdentifierCount() && getExternalReferencesCount() == that.getExternalReferencesCount() && getInformalTagCount() == that.getInformalTagCount() && getLicenseCount() == that.getLicenseCount() && getLikeCount() == that.getLikeCount() && getKnownLocationsCount() == that.getKnownLocationsCount() && getNoteLogsCount() == that.getNoteLogsCount() && getRatingsCount() == that.getRatingsCount() && getRelatedAssetCount() == that.getRelatedAssetCount() && getRelatedMediaReferenceCount() == that.getRelatedMediaReferenceCount() && getSchemaType() == that.getSchemaType() && getLastAttachment() == that.getLastAttachment() && Objects.equals(getAsset(), that.getAsset()); } AssetResponse();  AssetResponse(AssetResponse template); Asset getAsset(); void setAsset(Asset asset); int getCertificationCount(); void setCertificationCount(int certificationCount); int getCommentCount(); void setCommentCount(int commentCount); int getConnectionCount(); void setConnectionCount(int connectionCount); int getExternalIdentifierCount(); void setExternalIdentifierCount(int externalIdentifierCount); int getExternalReferencesCount(); void setExternalReferencesCount(int externalReferencesCount); int getInformalTagCount(); void setInformalTagCount(int informalTagCount); int getLicenseCount(); void setLicenseCount(int licenseCount); int getLikeCount(); void setLikeCount(int likeCount); int getKnownLocationsCount(); void setKnownLocationsCount(int knownLocationsCount); int getNoteLogsCount(); void setNoteLogsCount(int noteLogsCount); int getRatingsCount(); void setRatingsCount(int ratingsCount); int getRelatedAssetCount(); void setRelatedAssetCount(int relatedAssetCount); int getRelatedMediaReferenceCount(); void setRelatedMediaReferenceCount(int relatedMediaReferenceCount); SchemaType getSchemaType(); void setSchemaType(SchemaType schemaType); LastAttachment getLastAttachment(); void setLastAttachment(LastAttachment lastAttachment); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }