@Test public void testHashCode() { assertTrue(getTestObject().hashCode() == getTestObject().hashCode()); DigitalService testObject = getTestObject(); assertTrue(testObject.hashCode() != 0); DigitalService differentObject = getTestObject(); differentObject.setDisplayName("Digital Service 2"); differentObject.setDescription("The second digital service"); assertFalse(testObject.hashCode() == differentObject.hashCode()); }
@Override public int hashCode() { return Objects.hash(getDisplayName(), getDescription(), getVersion()); }
DigitalService extends DigitalServiceElementHeader { @Override public int hashCode() { return Objects.hash(getDisplayName(), getDescription(), getVersion()); } }
DigitalService extends DigitalServiceElementHeader { @Override public int hashCode() { return Objects.hash(getDisplayName(), getDescription(), getVersion()); } DigitalService();  DigitalService(DigitalService template); }
DigitalService extends DigitalServiceElementHeader { @Override public int hashCode() { return Objects.hash(getDisplayName(), getDescription(), getVersion()); } DigitalService();  DigitalService(DigitalService template); String getVersion(); void setVersion(String version); String getDisplayName(); void setDisplayName(String displayName); String getDescription(); void setDescription(String description); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
DigitalService extends DigitalServiceElementHeader { @Override public int hashCode() { return Objects.hash(getDisplayName(), getDescription(), getVersion()); } DigitalService();  DigitalService(DigitalService template); String getVersion(); void setVersion(String version); String getDisplayName(); void setDisplayName(String displayName); String getDescription(); void setDescription(String description); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }