@Test public void testIfCanReturnEmptyListWhenItsNotPossibleToCreateNextItemForWakeUpAtBuildingStrategy() { itemsBuilder.setBuildingStrategy(new WakeUpAtBuildingStrategy()); List<Item> returnedList = itemsBuilder.getItems(getDateTime("04/02/2011 20:00"), getDateTime("04/02/2011 21:00")); assertTrue(returnedList.isEmpty()); assertNotNull(returnedList); }
@Override public List<Item> getItems(DateTime currentDate, DateTime executionDate) { return getBuildingStrategy().getArrayOfItems(currentDate, executionDate); }
ItemsBuilder extends ItemsBuilderAbstraction { @Override public List<Item> getItems(DateTime currentDate, DateTime executionDate) { return getBuildingStrategy().getArrayOfItems(currentDate, executionDate); } }
ItemsBuilder extends ItemsBuilderAbstraction { @Override public List<Item> getItems(DateTime currentDate, DateTime executionDate) { return getBuildingStrategy().getArrayOfItems(currentDate, executionDate); }  }
ItemsBuilder extends ItemsBuilderAbstraction { @Override public List<Item> getItems(DateTime currentDate, DateTime executionDate) { return getBuildingStrategy().getArrayOfItems(currentDate, 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 List<Item> getItems(DateTime currentDate, DateTime executionDate) { return getBuildingStrategy().getArrayOfItems(currentDate, executionDate); }  @Override List<Item> getItems(DateTime currentDate, DateTime executionDate); @Override DateTime getNextAlarmDate(DateTime executionDate); @Override boolean isPossibleToCreateNextItem(DateTime currentDate, DateTime executionDate);  }