@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); License sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); License differentObject = getTestObject(); differentObject.setGUID("Different"); assertFalse(getTestObject().equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof License)) { return false; } if (!super.equals(objectToCompare)) { return false; } License license = (License) objectToCompare; return Objects.equals(getLicenseGUID(), license.getLicenseGUID()) && Objects.equals(licenseTypeName, license.licenseTypeName) && Objects.equals(getLicensee(), license.getLicensee()) && Objects.equals(getSummary(), license.getSummary()) && Objects.equals(getLink(), license.getLink()) && Objects.equals(getStartDate(), license.getStartDate()) && Objects.equals(getEndDate(), license.getEndDate()) && Objects.equals(getLicenseConditions(), license.getLicenseConditions()) && Objects.equals(getCreatedBy(), license.getCreatedBy()) && Objects.equals(getCustodian(), license.getCustodian()) && Objects.equals(getNotes(), license.getNotes()); }
License extends Referenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof License)) { return false; } if (!super.equals(objectToCompare)) { return false; } License license = (License) objectToCompare; return Objects.equals(getLicenseGUID(), license.getLicenseGUID()) && Objects.equals(licenseTypeName, license.licenseTypeName) && Objects.equals(getLicensee(), license.getLicensee()) && Objects.equals(getSummary(), license.getSummary()) && Objects.equals(getLink(), license.getLink()) && Objects.equals(getStartDate(), license.getStartDate()) && Objects.equals(getEndDate(), license.getEndDate()) && Objects.equals(getLicenseConditions(), license.getLicenseConditions()) && Objects.equals(getCreatedBy(), license.getCreatedBy()) && Objects.equals(getCustodian(), license.getCustodian()) && Objects.equals(getNotes(), license.getNotes()); } }
License extends Referenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof License)) { return false; } if (!super.equals(objectToCompare)) { return false; } License license = (License) objectToCompare; return Objects.equals(getLicenseGUID(), license.getLicenseGUID()) && Objects.equals(licenseTypeName, license.licenseTypeName) && Objects.equals(getLicensee(), license.getLicensee()) && Objects.equals(getSummary(), license.getSummary()) && Objects.equals(getLink(), license.getLink()) && Objects.equals(getStartDate(), license.getStartDate()) && Objects.equals(getEndDate(), license.getEndDate()) && Objects.equals(getLicenseConditions(), license.getLicenseConditions()) && Objects.equals(getCreatedBy(), license.getCreatedBy()) && Objects.equals(getCustodian(), license.getCustodian()) && Objects.equals(getNotes(), license.getNotes()); } License();  License(License template); }
License extends Referenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof License)) { return false; } if (!super.equals(objectToCompare)) { return false; } License license = (License) objectToCompare; return Objects.equals(getLicenseGUID(), license.getLicenseGUID()) && Objects.equals(licenseTypeName, license.licenseTypeName) && Objects.equals(getLicensee(), license.getLicensee()) && Objects.equals(getSummary(), license.getSummary()) && Objects.equals(getLink(), license.getLink()) && Objects.equals(getStartDate(), license.getStartDate()) && Objects.equals(getEndDate(), license.getEndDate()) && Objects.equals(getLicenseConditions(), license.getLicenseConditions()) && Objects.equals(getCreatedBy(), license.getCreatedBy()) && Objects.equals(getCustodian(), license.getCustodian()) && Objects.equals(getNotes(), license.getNotes()); } License();  License(License template); String getLicenseGUID(); void setLicenseGUID(String licenseGUID); String getLicenseTypeName(); void setLicenseTypeName(String licenseTypeName); String getLicensee(); void setLicensee(String licensee); String getSummary(); void setSummary(String summary); ExternalReference getLink(); void setLink(ExternalReference link); Date getStartDate(); void setStartDate(Date startDate); Date getEndDate(); void setEndDate(Date endDate); String getLicenseConditions(); void setLicenseConditions(String licenseConditions); String getCreatedBy(); void setCreatedBy(String createdBy); String getCustodian(); void setCustodian(String custodian); String getNotes(); void setNotes(String notes); @Override String toString(); @Override boolean equals(Object objectToCompare); }
License extends Referenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof License)) { return false; } if (!super.equals(objectToCompare)) { return false; } License license = (License) objectToCompare; return Objects.equals(getLicenseGUID(), license.getLicenseGUID()) && Objects.equals(licenseTypeName, license.licenseTypeName) && Objects.equals(getLicensee(), license.getLicensee()) && Objects.equals(getSummary(), license.getSummary()) && Objects.equals(getLink(), license.getLink()) && Objects.equals(getStartDate(), license.getStartDate()) && Objects.equals(getEndDate(), license.getEndDate()) && Objects.equals(getLicenseConditions(), license.getLicenseConditions()) && Objects.equals(getCreatedBy(), license.getCreatedBy()) && Objects.equals(getCustodian(), license.getCustodian()) && Objects.equals(getNotes(), license.getNotes()); } License();  License(License template); String getLicenseGUID(); void setLicenseGUID(String licenseGUID); String getLicenseTypeName(); void setLicenseTypeName(String licenseTypeName); String getLicensee(); void setLicensee(String licensee); String getSummary(); void setSummary(String summary); ExternalReference getLink(); void setLink(ExternalReference link); Date getStartDate(); void setStartDate(Date startDate); Date getEndDate(); void setEndDate(Date endDate); String getLicenseConditions(); void setLicenseConditions(String licenseConditions); String getCreatedBy(); void setCreatedBy(String createdBy); String getCustodian(); void setCustodian(String custodian); String getNotes(); void setNotes(String notes); @Override String toString(); @Override boolean equals(Object objectToCompare);  }