@Test public void shouldGetSupplyLineById() { when(mapper.getById(3L)).thenReturn(supplyLine); SupplyLine returnedSupplyLine = repository.getById(3L); verify(mapper).getById(3L); assertThat(returnedSupplyLine, is(supplyLine)); }
public SupplyLine getById(Long id) { return mapper.getById(id); }
SupplyLineRepository { public SupplyLine getById(Long id) { return mapper.getById(id); } }
SupplyLineRepository { public SupplyLine getById(Long id) { return mapper.getById(id); }  }
SupplyLineRepository { public SupplyLine getById(Long id) { return mapper.getById(id); }  void insert(SupplyLine supplyLine); SupplyLine getSupplyLineBy(SupervisoryNode supervisoryNode, Program program); void update(SupplyLine supplyLine); SupplyLine getById(Long id); List<SupplyLine> search(String searchParam, String column, Pagination pagination); Integer getTotalSearchResultCount(String searchParam, String column); List<Facility> getSupplyingFacilities(Long userId); SupplyLine getSupplyLineByFacilityProgram(Long facilityId, Long programId); }
SupplyLineRepository { public SupplyLine getById(Long id) { return mapper.getById(id); }  void insert(SupplyLine supplyLine); SupplyLine getSupplyLineBy(SupervisoryNode supervisoryNode, Program program); void update(SupplyLine supplyLine); SupplyLine getById(Long id); List<SupplyLine> search(String searchParam, String column, Pagination pagination); Integer getTotalSearchResultCount(String searchParam, String column); List<Facility> getSupplyingFacilities(Long userId); SupplyLine getSupplyLineByFacilityProgram(Long facilityId, Long programId);  }