@Test public void shouldGetOperation() throws Exception { ReportStatusChange change = new ReportStatusChange(); change.setStatus(ReportStatus.APPROVED); when(mapper.getOperationLog(1L, ReportStatus.APPROVED)).thenReturn(change); ReportStatusChange result = repository.getOperation(1L, ReportStatus.APPROVED); assertThat(result, is(change)); verify(mapper).getOperationLog(1L, ReportStatus.APPROVED); }
public ReportStatusChange getOperation(Long reportId, ReportStatus status){ return mapper.getOperationLog(reportId, status); }
VaccineReportStatusChangeRepository { public ReportStatusChange getOperation(Long reportId, ReportStatus status){ return mapper.getOperationLog(reportId, status); } }
VaccineReportStatusChangeRepository { public ReportStatusChange getOperation(Long reportId, ReportStatus status){ return mapper.getOperationLog(reportId, status); }  }
VaccineReportStatusChangeRepository { public ReportStatusChange getOperation(Long reportId, ReportStatus status){ return mapper.getOperationLog(reportId, status); }  void insert(ReportStatusChange change); List<ReportStatusChange> getChangesForReport(Long reportId); ReportStatusChange getOperation(Long reportId, ReportStatus status); }
VaccineReportStatusChangeRepository { public ReportStatusChange getOperation(Long reportId, ReportStatus status){ return mapper.getOperationLog(reportId, status); }  void insert(ReportStatusChange change); List<ReportStatusChange> getChangesForReport(Long reportId); ReportStatusChange getOperation(Long reportId, ReportStatus status);  }