@Test public void shouldGetChangesForReport() throws Exception { ReportStatusChange change = new ReportStatusChange(); when(mapper.getChangeLogByReportId(1L)).thenReturn(asList(change)); List<ReportStatusChange> changes = repository.getChangesForReport(1L); assertThat(changes.size(), is(1)); verify(mapper).getChangeLogByReportId(1L); }
public List<ReportStatusChange> getChangesForReport(Long reportId){ return mapper.getChangeLogByReportId(reportId); }
VaccineReportStatusChangeRepository { public List<ReportStatusChange> getChangesForReport(Long reportId){ return mapper.getChangeLogByReportId(reportId); } }
VaccineReportStatusChangeRepository { public List<ReportStatusChange> getChangesForReport(Long reportId){ return mapper.getChangeLogByReportId(reportId); }  }
VaccineReportStatusChangeRepository { public List<ReportStatusChange> getChangesForReport(Long reportId){ return mapper.getChangeLogByReportId(reportId); }  void insert(ReportStatusChange change); List<ReportStatusChange> getChangesForReport(Long reportId); ReportStatusChange getOperation(Long reportId, ReportStatus status); }
VaccineReportStatusChangeRepository { public List<ReportStatusChange> getChangesForReport(Long reportId){ return mapper.getChangeLogByReportId(reportId); }  void insert(ReportStatusChange change); List<ReportStatusChange> getChangesForReport(Long reportId); ReportStatusChange getOperation(Long reportId, ReportStatus status);  }