@Test public void shouldGetByRnrId() throws Exception { List<RequisitionStatusChange> requisitionStatusChanges = new ArrayList<>(); when(mapper.getByRnrId(2L)).thenReturn(requisitionStatusChanges); List<RequisitionStatusChange> changes = repository.getByRnrId(2L); assertThat(changes, is(requisitionStatusChanges)); }
public List<RequisitionStatusChange> getByRnrId(Long rnrId) { return mapper.getByRnrId(rnrId); }
RequisitionStatusChangeRepository { public List<RequisitionStatusChange> getByRnrId(Long rnrId) { return mapper.getByRnrId(rnrId); } }
RequisitionStatusChangeRepository { public List<RequisitionStatusChange> getByRnrId(Long rnrId) { return mapper.getByRnrId(rnrId); }  }
RequisitionStatusChangeRepository { public List<RequisitionStatusChange> getByRnrId(Long rnrId) { return mapper.getByRnrId(rnrId); }  List<RequisitionStatusChange> getByRnrId(Long rnrId); }
RequisitionStatusChangeRepository { public List<RequisitionStatusChange> getByRnrId(Long rnrId) { return mapper.getByRnrId(rnrId); }  List<RequisitionStatusChange> getByRnrId(Long rnrId);  }