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