@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); AssetDetail sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetDetail)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetDetail that = (AssetDetail) objectToCompare; return Objects.equals(getExternalIdentifiers(), that.getExternalIdentifiers()) && Objects.equals(getRelatedMediaReferences(), that.getRelatedMediaReferences()) && Objects.equals(getNoteLogs(), that.getNoteLogs()) && Objects.equals(getExternalReferences(), that.getExternalReferences()) && Objects.equals(getConnections(), that.getConnections()) && Objects.equals(getLicenses(), that.getLicenses()) && Objects.equals(getCertifications(), that.getCertifications()); }
AssetDetail extends AssetSummary { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetDetail)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetDetail that = (AssetDetail) objectToCompare; return Objects.equals(getExternalIdentifiers(), that.getExternalIdentifiers()) && Objects.equals(getRelatedMediaReferences(), that.getRelatedMediaReferences()) && Objects.equals(getNoteLogs(), that.getNoteLogs()) && Objects.equals(getExternalReferences(), that.getExternalReferences()) && Objects.equals(getConnections(), that.getConnections()) && Objects.equals(getLicenses(), that.getLicenses()) && Objects.equals(getCertifications(), that.getCertifications()); } }
AssetDetail extends AssetSummary { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetDetail)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetDetail that = (AssetDetail) objectToCompare; return Objects.equals(getExternalIdentifiers(), that.getExternalIdentifiers()) && Objects.equals(getRelatedMediaReferences(), that.getRelatedMediaReferences()) && Objects.equals(getNoteLogs(), that.getNoteLogs()) && Objects.equals(getExternalReferences(), that.getExternalReferences()) && Objects.equals(getConnections(), that.getConnections()) && Objects.equals(getLicenses(), that.getLicenses()) && Objects.equals(getCertifications(), that.getCertifications()); } protected  AssetDetail();  AssetDetail(Asset                       assetBean,
                       AssetExternalIdentifiers    externalIdentifiers,
                       AssetRelatedMediaReferences relatedMediaReferences,
                       AssetNoteLogs               noteLogs,
                       AssetExternalReferences     externalReferences,
                       AssetConnections            connections,
                       AssetLicenses               licenses,
                       AssetCertifications         certifications);  AssetDetail(AssetDetail templateAssetDetail); }
AssetDetail extends AssetSummary { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetDetail)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetDetail that = (AssetDetail) objectToCompare; return Objects.equals(getExternalIdentifiers(), that.getExternalIdentifiers()) && Objects.equals(getRelatedMediaReferences(), that.getRelatedMediaReferences()) && Objects.equals(getNoteLogs(), that.getNoteLogs()) && Objects.equals(getExternalReferences(), that.getExternalReferences()) && Objects.equals(getConnections(), that.getConnections()) && Objects.equals(getLicenses(), that.getLicenses()) && Objects.equals(getCertifications(), that.getCertifications()); } protected  AssetDetail();  AssetDetail(Asset                       assetBean,
                       AssetExternalIdentifiers    externalIdentifiers,
                       AssetRelatedMediaReferences relatedMediaReferences,
                       AssetNoteLogs               noteLogs,
                       AssetExternalReferences     externalReferences,
                       AssetConnections            connections,
                       AssetLicenses               licenses,
                       AssetCertifications         certifications);  AssetDetail(AssetDetail templateAssetDetail); AssetExternalIdentifiers getExternalIdentifiers(); AssetRelatedMediaReferences getRelatedMediaReferences(); AssetNoteLogs getNoteLogs(); AssetExternalReferences getExternalReferences(); AssetConnections getConnections(); AssetLicenses getLicenses(); AssetCertifications getCertifications(); @Override String toString(); @Override boolean equals(Object objectToCompare); }
AssetDetail extends AssetSummary { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetDetail)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetDetail that = (AssetDetail) objectToCompare; return Objects.equals(getExternalIdentifiers(), that.getExternalIdentifiers()) && Objects.equals(getRelatedMediaReferences(), that.getRelatedMediaReferences()) && Objects.equals(getNoteLogs(), that.getNoteLogs()) && Objects.equals(getExternalReferences(), that.getExternalReferences()) && Objects.equals(getConnections(), that.getConnections()) && Objects.equals(getLicenses(), that.getLicenses()) && Objects.equals(getCertifications(), that.getCertifications()); } protected  AssetDetail();  AssetDetail(Asset                       assetBean,
                       AssetExternalIdentifiers    externalIdentifiers,
                       AssetRelatedMediaReferences relatedMediaReferences,
                       AssetNoteLogs               noteLogs,
                       AssetExternalReferences     externalReferences,
                       AssetConnections            connections,
                       AssetLicenses               licenses,
                       AssetCertifications         certifications);  AssetDetail(AssetDetail templateAssetDetail); AssetExternalIdentifiers getExternalIdentifiers(); AssetRelatedMediaReferences getRelatedMediaReferences(); AssetNoteLogs getNoteLogs(); AssetExternalReferences getExternalReferences(); AssetConnections getConnections(); AssetLicenses getLicenses(); AssetCertifications getCertifications(); @Override String toString(); @Override boolean equals(Object objectToCompare);  }