@Test public void shouldGetFacilityInterfaceMappingById(){ List<ELMISInterfaceFacilityMapping> mappingsList = new ArrayList<>(); when(mapper.getFacilityInterfaceMappingById(123L)).thenReturn(mappingsList); List<ELMISInterfaceFacilityMapping> mappings = repository.getFacilityInterfaceMappingById(123L); verify(mapper).getFacilityInterfaceMappingById(123L); assertThat(mappings, is(mappingsList)); }
public List<ELMISInterfaceFacilityMapping> getFacilityInterfaceMappingById(Long facilityId){ return mapper.getFacilityInterfaceMappingById(facilityId); }
ELMISInterfaceRepository { public List<ELMISInterfaceFacilityMapping> getFacilityInterfaceMappingById(Long facilityId){ return mapper.getFacilityInterfaceMappingById(facilityId); } }
ELMISInterfaceRepository { public List<ELMISInterfaceFacilityMapping> getFacilityInterfaceMappingById(Long facilityId){ return mapper.getFacilityInterfaceMappingById(facilityId); }  }
ELMISInterfaceRepository { public List<ELMISInterfaceFacilityMapping> getFacilityInterfaceMappingById(Long facilityId){ return mapper.getFacilityInterfaceMappingById(facilityId); }  ELMISInterface get(long interfaceId); void insert(ELMISInterface elmisInterface); void update(ELMISInterface elmisInterface); void updateELMISInterfaceDataSets(ELMISInterface elmisInterface); List<ELMISInterface> getAllInterfaces(); List<ELMISInterfaceFacilityMapping> getInterfaceFacilityMappings(); List<ELMISInterfaceFacilityMapping> getFacilityInterfaceMappingById(Long facilityId); List<ELMISInterface> getAllActiveInterfaces(); void updateFacilityInterfaceMapping(Facility facility); }
ELMISInterfaceRepository { public List<ELMISInterfaceFacilityMapping> getFacilityInterfaceMappingById(Long facilityId){ return mapper.getFacilityInterfaceMappingById(facilityId); }  ELMISInterface get(long interfaceId); void insert(ELMISInterface elmisInterface); void update(ELMISInterface elmisInterface); void updateELMISInterfaceDataSets(ELMISInterface elmisInterface); List<ELMISInterface> getAllInterfaces(); List<ELMISInterfaceFacilityMapping> getInterfaceFacilityMappings(); List<ELMISInterfaceFacilityMapping> getFacilityInterfaceMappingById(Long facilityId); List<ELMISInterface> getAllActiveInterfaces(); void updateFacilityInterfaceMapping(Facility facility);  }