@Test public void testIfCanReturnTitleForWakeUpAt() { assertThat(AlarmContentUtils.getTitleForWakeUpAt(getDateTime("01/01/2001 23:00"), getDateTime("02/01/2001 6:30")), is("23:00 -> 06:30")); assertThat(AlarmContentUtils.getTitleForWakeUpAt(getDateTime("02/01/2001 00:00"), getDateTime("02/01/2001 01:30")), is("00:00 -> 01:30")); }
public static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate) { return new StringBuilder().append(getFormattedTime(timeToGoToSleep)) .append(" -> ") .append(getFormattedTime(executionDate)) .toString(); }
AlarmContentUtils { public static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate) { return new StringBuilder().append(getFormattedTime(timeToGoToSleep)) .append(" -> ") .append(getFormattedTime(executionDate)) .toString(); } }
AlarmContentUtils { public static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate) { return new StringBuilder().append(getFormattedTime(timeToGoToSleep)) .append(" -> ") .append(getFormattedTime(executionDate)) .toString(); }  }
AlarmContentUtils { public static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate) { return new StringBuilder().append(getFormattedTime(timeToGoToSleep)) .append(" -> ") .append(getFormattedTime(executionDate)) .toString(); }  static String getTitle(String executionDateString); static String getTitle(DateTime executionDate); static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate); static DateTime getDateConvertedToSimple(DateTime date); static String getSummary(DateTime currentDate, DateTime executionDate); }
AlarmContentUtils { public static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate) { return new StringBuilder().append(getFormattedTime(timeToGoToSleep)) .append(" -> ") .append(getFormattedTime(executionDate)) .toString(); }  static String getTitle(String executionDateString); static String getTitle(DateTime executionDate); static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate); static DateTime getDateConvertedToSimple(DateTime date); static String getSummary(DateTime currentDate, DateTime executionDate);  }