@Test public void alarmTest() { LocalDateTime alarmTime = LocalDateTime.of(2018, 8, 15, 11, 11); Alarm a1 = new Alarm(5, alarmTime, false); assertEquals(5, a1.getId()); LocalDateTime of = LocalDateTime.of(2018, 8, 15, 11, 11); assertThat(a1.getAlarmTime(), is(equalTo(of))); assertThat(a1.isActive(), is(false)); }
public Alarm() { }
Alarm extends io.github.amyassist.amy.utility.rest.Entity implements RegistryEntity { public Alarm() { } }
Alarm extends io.github.amyassist.amy.utility.rest.Entity implements RegistryEntity { public Alarm() { } Alarm();  Alarm(int id, LocalDateTime alarmTime, boolean active); }
Alarm extends io.github.amyassist.amy.utility.rest.Entity implements RegistryEntity { public Alarm() { } Alarm();  Alarm(int id, LocalDateTime alarmTime, boolean active); @Override String toString(); static boolean timeValid(int hour, int minute); int getId(); void setId(int id); LocalDateTime getAlarmTime(); boolean isActive(); void setActive(boolean active); @Override int getPersistentId(); @Override int hashCode(); @Override boolean equals(Object obj); void setAlarmTime(LocalDateTime alarmTime); }
Alarm extends io.github.amyassist.amy.utility.rest.Entity implements RegistryEntity { public Alarm() { } Alarm();  Alarm(int id, LocalDateTime alarmTime, boolean active); @Override String toString(); static boolean timeValid(int hour, int minute); int getId(); void setId(int id); LocalDateTime getAlarmTime(); boolean isActive(); void setActive(boolean active); @Override int getPersistentId(); @Override int hashCode(); @Override boolean equals(Object obj); void setAlarmTime(LocalDateTime alarmTime);  }