@Test public void shouldGetById() throws Exception { repository.getById(1L); verify(mapper).getById(1L); }
public MaintenanceRequest getById(Long id){ return mapper.getById(id); }
MaintenanceRequestRepository { public MaintenanceRequest getById(Long id){ return mapper.getById(id); } }
MaintenanceRequestRepository { public MaintenanceRequest getById(Long id){ return mapper.getById(id); }  }
MaintenanceRequestRepository { public MaintenanceRequest getById(Long id){ return mapper.getById(id); }  MaintenanceRequest getById(Long id); List<MaintenanceRequest> getAllForFacility(Long facilityId); List<MaintenanceRequest> getAllForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForUser(Long userId); List<MaintenanceRequest> getAll(); void insert(MaintenanceRequest value); void update(MaintenanceRequest value); List<Log> getFullHistory(Long inventoryId); }
MaintenanceRequestRepository { public MaintenanceRequest getById(Long id){ return mapper.getById(id); }  MaintenanceRequest getById(Long id); List<MaintenanceRequest> getAllForFacility(Long facilityId); List<MaintenanceRequest> getAllForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForUser(Long userId); List<MaintenanceRequest> getAll(); void insert(MaintenanceRequest value); void update(MaintenanceRequest value); List<Log> getFullHistory(Long inventoryId);  }