@Test public void testIfCanReturnNextAlarmDateForWakeUpAtStrategy() { itemsBuilder.setBuildingStrategy(new WakeUpAtBuildingStrategy()); assertEquals(getDateTime("04/02/2011 23:30"), itemsBuilder.getNextAlarmDate(getDateTime("05/02/2011 01:00"))); assertEquals(getDateTime("05/02/2011 13:30"), itemsBuilder.getNextAlarmDate(getDateTime("05/02/2011 15:00"))); assertEquals(getDateTime("04/02/2011 22:32"), itemsBuilder.getNextAlarmDate(getDateTime("05/02/2011 00:02"))); }
@Override public DateTime getNextAlarmDate(DateTime executionDate) { return getBuildingStrategy().getNextAlarmDate(executionDate); }
ItemsBuilder extends ItemsBuilderAbstraction { @Override public DateTime getNextAlarmDate(DateTime executionDate) { return getBuildingStrategy().getNextAlarmDate(executionDate); } }
ItemsBuilder extends ItemsBuilderAbstraction { @Override public DateTime getNextAlarmDate(DateTime executionDate) { return getBuildingStrategy().getNextAlarmDate(executionDate); }  }
ItemsBuilder extends ItemsBuilderAbstraction { @Override public DateTime getNextAlarmDate(DateTime executionDate) { return getBuildingStrategy().getNextAlarmDate(executionDate); }  @Override List<Item> getItems(DateTime currentDate, DateTime executionDate); @Override DateTime getNextAlarmDate(DateTime executionDate); @Override boolean isPossibleToCreateNextItem(DateTime currentDate, DateTime executionDate); }
ItemsBuilder extends ItemsBuilderAbstraction { @Override public DateTime getNextAlarmDate(DateTime executionDate) { return getBuildingStrategy().getNextAlarmDate(executionDate); }  @Override List<Item> getItems(DateTime currentDate, DateTime executionDate); @Override DateTime getNextAlarmDate(DateTime executionDate); @Override boolean isPossibleToCreateNextItem(DateTime currentDate, DateTime executionDate);  }