@Test public void testSameObject(){ TaskProperties properties = new TaskProperties(); Assert.assertTrue(properties.equals(properties)); }
@Override public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof TaskProperties) { TaskProperties anotherProperties = (TaskProperties) anObject; if (this.repeat != anotherProperties.repeat) { return false; } if (this.delay != anotherProperties.delay) { return false; } return true; } return false; }
TaskProperties { @Override public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof TaskProperties) { TaskProperties anotherProperties = (TaskProperties) anObject; if (this.repeat != anotherProperties.repeat) { return false; } if (this.delay != anotherProperties.delay) { return false; } return true; } return false; } }
TaskProperties { @Override public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof TaskProperties) { TaskProperties anotherProperties = (TaskProperties) anObject; if (this.repeat != anotherProperties.repeat) { return false; } if (this.delay != anotherProperties.delay) { return false; } return true; } return false; } TaskProperties();  TaskProperties(boolean repeat);  TaskProperties(boolean repeat, long delay); }
TaskProperties { @Override public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof TaskProperties) { TaskProperties anotherProperties = (TaskProperties) anObject; if (this.repeat != anotherProperties.repeat) { return false; } if (this.delay != anotherProperties.delay) { return false; } return true; } return false; } TaskProperties();  TaskProperties(boolean repeat);  TaskProperties(boolean repeat, long delay); boolean isRepeat(); void setRepeat(boolean repeat); long getDelay(); void setDelay(long delay); @Override boolean equals(Object anObject); }
TaskProperties { @Override public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof TaskProperties) { TaskProperties anotherProperties = (TaskProperties) anObject; if (this.repeat != anotherProperties.repeat) { return false; } if (this.delay != anotherProperties.delay) { return false; } return true; } return false; } TaskProperties();  TaskProperties(boolean repeat);  TaskProperties(boolean repeat, long delay); boolean isRepeat(); void setRepeat(boolean repeat); long getDelay(); void setDelay(long delay); @Override boolean equals(Object anObject);  }