@Test public void shouldGetProcessingScheduleByZoneAndProgram() throws Exception { ProcessingSchedule expectedSchedule = new ProcessingSchedule(); expectedSchedule.setId(3l); when(mapper.getProcessingScheduleByZoneAndProgram(1l, 2l)).thenReturn(expectedSchedule); ProcessingSchedule processingSchedule = repository.getProcessingScheduleByZoneAndProgram(1l, 2l); assertThat(processingSchedule, is(expectedSchedule)); verify(mapper).getProcessingScheduleByZoneAndProgram(1l, 2l); }
public ProcessingSchedule getProcessingScheduleByZoneAndProgram(Long zoneId, Long programId) { return mapper.getProcessingScheduleByZoneAndProgram(zoneId, programId); }
DeliveryZoneProgramScheduleRepository { public ProcessingSchedule getProcessingScheduleByZoneAndProgram(Long zoneId, Long programId) { return mapper.getProcessingScheduleByZoneAndProgram(zoneId, programId); } }
DeliveryZoneProgramScheduleRepository { public ProcessingSchedule getProcessingScheduleByZoneAndProgram(Long zoneId, Long programId) { return mapper.getProcessingScheduleByZoneAndProgram(zoneId, programId); }  }
DeliveryZoneProgramScheduleRepository { public ProcessingSchedule getProcessingScheduleByZoneAndProgram(Long zoneId, Long programId) { return mapper.getProcessingScheduleByZoneAndProgram(zoneId, programId); }  void insert(DeliveryZoneProgramSchedule schedule); void update(DeliveryZoneProgramSchedule schedule); DeliveryZoneProgramSchedule getByDeliveryZoneCodeAndProgramCode(String deliveryZoneCode, String programCode); List<Long> getProgramIdsForDeliveryZones(Long deliveryZoneId); ProcessingSchedule getProcessingScheduleByZoneAndProgram(Long zoneId, Long programId); }
DeliveryZoneProgramScheduleRepository { public ProcessingSchedule getProcessingScheduleByZoneAndProgram(Long zoneId, Long programId) { return mapper.getProcessingScheduleByZoneAndProgram(zoneId, programId); }  void insert(DeliveryZoneProgramSchedule schedule); void update(DeliveryZoneProgramSchedule schedule); DeliveryZoneProgramSchedule getByDeliveryZoneCodeAndProgramCode(String deliveryZoneCode, String programCode); List<Long> getProgramIdsForDeliveryZones(Long deliveryZoneId); ProcessingSchedule getProcessingScheduleByZoneAndProgram(Long zoneId, Long programId);  }