@Test public void testEquals() { RelativeTime left = new RelativeTime(mockSlot, TimeOfDay.MO); RelativeTime right = new RelativeTime(mockSlot, TimeOfDay.MO); assertEquals(left, right); assertEquals(left.getTime(), right.getTime()); assertEquals(left.getSlot(), right.getSlot()); assertEquals(left.hashCode(), right.hashCode()); assertEquals(left.toString(), right.toString()); }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; RelativeTime that = (RelativeTime) o; return time == that.time; }
RelativeTime extends AmazonTime { @Override public boolean equals(Object o) { if (!super.equals(o)) return false; RelativeTime that = (RelativeTime) o; return time == that.time; } }
RelativeTime extends AmazonTime { @Override public boolean equals(Object o) { if (!super.equals(o)) return false; RelativeTime that = (RelativeTime) o; return time == that.time; } RelativeTime(Slot slot, TimeOfDay time); }
RelativeTime extends AmazonTime { @Override public boolean equals(Object o) { if (!super.equals(o)) return false; RelativeTime that = (RelativeTime) o; return time == that.time; } RelativeTime(Slot slot, TimeOfDay time); TimeOfDay getTime(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
RelativeTime extends AmazonTime { @Override public boolean equals(Object o) { if (!super.equals(o)) return false; RelativeTime that = (RelativeTime) o; return time == that.time; } RelativeTime(Slot slot, TimeOfDay time); TimeOfDay getTime(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }