@SuppressWarnings({ "unchecked", "rawtypes" }) @Test public void testfindAll() { List<CodeSystemVersion> codeSystemVersionsMock = mock(List.class); when(codeSystemVersionRepository.findAll()).thenReturn( codeSystemVersionsMock); List<CodeSystemVersionDto> codeSystemVersionDtos = new ArrayList(); CodeSystemVersionDto codeSystemVersionDto = mock(CodeSystemVersionDto.class); codeSystemVersionDtos.add(codeSystemVersionDto); when( valueSetMgmtHelper .convertCodeSystemVersionEntitiesToDtos(codeSystemVersionsMock)) .thenReturn(codeSystemVersionDtos); assertEquals(vst.findAll(), codeSystemVersionDtos); }
@Override public List<CodeSystemVersionDto> findAll() { logger.debug("Finding all codeSystemVersions"); List<CodeSystemVersion> codeSystemVersions = codeSystemVersionRepository .findAll(); return groupByCodeSystem(codeSystemVersionMgmtHelper .convertCodeSystemVersionEntitiesToDtos(codeSystemVersions)); }
CodeSystemVersionServiceImpl implements CodeSystemVersionService { @Override public List<CodeSystemVersionDto> findAll() { logger.debug("Finding all codeSystemVersions"); List<CodeSystemVersion> codeSystemVersions = codeSystemVersionRepository .findAll(); return groupByCodeSystem(codeSystemVersionMgmtHelper .convertCodeSystemVersionEntitiesToDtos(codeSystemVersions)); } }
CodeSystemVersionServiceImpl implements CodeSystemVersionService { @Override public List<CodeSystemVersionDto> findAll() { logger.debug("Finding all codeSystemVersions"); List<CodeSystemVersion> codeSystemVersions = codeSystemVersionRepository .findAll(); return groupByCodeSystem(codeSystemVersionMgmtHelper .convertCodeSystemVersionEntitiesToDtos(codeSystemVersions)); } CodeSystemVersionServiceImpl(
			CodeSystemVersionRepository codeSystemVersionRepository,
			CodeSystemRepository codeSystemRepository,
			ValueSetMgmtHelper codeSystemVersionMgmtHelper); }
CodeSystemVersionServiceImpl implements CodeSystemVersionService { @Override public List<CodeSystemVersionDto> findAll() { logger.debug("Finding all codeSystemVersions"); List<CodeSystemVersion> codeSystemVersions = codeSystemVersionRepository .findAll(); return groupByCodeSystem(codeSystemVersionMgmtHelper .convertCodeSystemVersionEntitiesToDtos(codeSystemVersions)); } CodeSystemVersionServiceImpl(
			CodeSystemVersionRepository codeSystemVersionRepository,
			CodeSystemRepository codeSystemRepository,
			ValueSetMgmtHelper codeSystemVersionMgmtHelper); @Override @Transactional CodeSystemVersionDto create(CodeSystemVersionDto created); @Override @Transactional(rollbackFor = CodeSystemVersionNotFoundException.class) CodeSystemVersionDto delete(Long codeSystemVersionId); @Override List<CodeSystemVersionDto> findAll(); @Override CodeSystemVersionDto findById(Long id); @Override @Transactional(rollbackFor = CodeSystemVersionNotFoundException.class) CodeSystemVersionDto update(CodeSystemVersionDto updated); @Override CodeSystemVersionCSDto create(); @Override List<CodeSystemVersionDto> groupByCodeSystem(
			List<CodeSystemVersionDto> codeSystemVersionDtos); }
CodeSystemVersionServiceImpl implements CodeSystemVersionService { @Override public List<CodeSystemVersionDto> findAll() { logger.debug("Finding all codeSystemVersions"); List<CodeSystemVersion> codeSystemVersions = codeSystemVersionRepository .findAll(); return groupByCodeSystem(codeSystemVersionMgmtHelper .convertCodeSystemVersionEntitiesToDtos(codeSystemVersions)); } CodeSystemVersionServiceImpl(
			CodeSystemVersionRepository codeSystemVersionRepository,
			CodeSystemRepository codeSystemRepository,
			ValueSetMgmtHelper codeSystemVersionMgmtHelper); @Override @Transactional CodeSystemVersionDto create(CodeSystemVersionDto created); @Override @Transactional(rollbackFor = CodeSystemVersionNotFoundException.class) CodeSystemVersionDto delete(Long codeSystemVersionId); @Override List<CodeSystemVersionDto> findAll(); @Override CodeSystemVersionDto findById(Long id); @Override @Transactional(rollbackFor = CodeSystemVersionNotFoundException.class) CodeSystemVersionDto update(CodeSystemVersionDto updated); @Override CodeSystemVersionCSDto create(); @Override List<CodeSystemVersionDto> groupByCodeSystem(
			List<CodeSystemVersionDto> codeSystemVersionDtos);  }