@Test public void shouldGetELMISInterface(){ ELMISInterface it = new ELMISInterface(); when(mapper.get(123L)).thenReturn(it); ELMISInterface elmisInterface = repository.get(123L); verify(mapper).get(123L); assertThat(elmisInterface, is(it)); }
public ELMISInterface get(long interfaceId) { return mapper.get(interfaceId); }
ELMISInterfaceRepository { public ELMISInterface get(long interfaceId) { return mapper.get(interfaceId); } }
ELMISInterfaceRepository { public ELMISInterface get(long interfaceId) { return mapper.get(interfaceId); }  }
ELMISInterfaceRepository { public ELMISInterface get(long interfaceId) { return mapper.get(interfaceId); }  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 ELMISInterface get(long interfaceId) { return mapper.get(interfaceId); }  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);  }