@SuppressWarnings("unchecked") @Test public void testfindAll() { List<ValueSetCategory> valueSets = mock(List.class); when(valueSetCategoryRepository.findAll()).thenReturn(valueSets); List<ValueSetCategoryDto> valueSetDtos = new ArrayList<ValueSetCategoryDto>(); ValueSetCategoryDto valueSetDto = mock(ValueSetCategoryDto.class); valueSetDtos.add(valueSetDto); when( valueSetMgmtHelper.convertValueSetCategoryEntitiesToDtos( valueSets, consentRepositoryMock)).thenReturn( valueSetDtos); assertEquals(vst.findAll(), valueSetDtos); }
@Override public List<ValueSetCategoryDto> findAll() { logger.debug("Finding all valueSetCategories"); List<ValueSetCategory> valueSetCategories = valueSetCategoryRepository .findAll(); return valueSetMgmtHelper.convertValueSetCategoryEntitiesToDtos( valueSetCategories, consentRepository); }
ValueSetCategoryServiceImpl implements ValueSetCategoryService { @Override public List<ValueSetCategoryDto> findAll() { logger.debug("Finding all valueSetCategories"); List<ValueSetCategory> valueSetCategories = valueSetCategoryRepository .findAll(); return valueSetMgmtHelper.convertValueSetCategoryEntitiesToDtos( valueSetCategories, consentRepository); } }
ValueSetCategoryServiceImpl implements ValueSetCategoryService { @Override public List<ValueSetCategoryDto> findAll() { logger.debug("Finding all valueSetCategories"); List<ValueSetCategory> valueSetCategories = valueSetCategoryRepository .findAll(); return valueSetMgmtHelper.convertValueSetCategoryEntitiesToDtos( valueSetCategories, consentRepository); } ValueSetCategoryServiceImpl(
			ValueSetCategoryRepository valueSetCategoryRepository,
			ConsentRepository consentRepository,
			ValueSetMgmtHelper valueSetMgmtHelper); }
ValueSetCategoryServiceImpl implements ValueSetCategoryService { @Override public List<ValueSetCategoryDto> findAll() { logger.debug("Finding all valueSetCategories"); List<ValueSetCategory> valueSetCategories = valueSetCategoryRepository .findAll(); return valueSetMgmtHelper.convertValueSetCategoryEntitiesToDtos( valueSetCategories, consentRepository); } ValueSetCategoryServiceImpl(
			ValueSetCategoryRepository valueSetCategoryRepository,
			ConsentRepository consentRepository,
			ValueSetMgmtHelper valueSetMgmtHelper); @Override @Transactional ValueSetCategoryDto create(ValueSetCategoryDto created); @Override @Transactional(rollbackFor = ValueSetCategoryNotFoundException.class) ValueSetCategoryDto delete(Long valueSetCategoryId); @Override List<ValueSetCategoryDto> findAll(); @Override ValueSetCategoryDto findById(Long id); @Override @Transactional(rollbackFor = ValueSetCategoryNotFoundException.class) ValueSetCategoryDto update(ValueSetCategoryDto updated); @Override List<AddConsentFieldsDto> findAllValueSetCategoriesAddConsentFieldsDto(); }
ValueSetCategoryServiceImpl implements ValueSetCategoryService { @Override public List<ValueSetCategoryDto> findAll() { logger.debug("Finding all valueSetCategories"); List<ValueSetCategory> valueSetCategories = valueSetCategoryRepository .findAll(); return valueSetMgmtHelper.convertValueSetCategoryEntitiesToDtos( valueSetCategories, consentRepository); } ValueSetCategoryServiceImpl(
			ValueSetCategoryRepository valueSetCategoryRepository,
			ConsentRepository consentRepository,
			ValueSetMgmtHelper valueSetMgmtHelper); @Override @Transactional ValueSetCategoryDto create(ValueSetCategoryDto created); @Override @Transactional(rollbackFor = ValueSetCategoryNotFoundException.class) ValueSetCategoryDto delete(Long valueSetCategoryId); @Override List<ValueSetCategoryDto> findAll(); @Override ValueSetCategoryDto findById(Long id); @Override @Transactional(rollbackFor = ValueSetCategoryNotFoundException.class) ValueSetCategoryDto update(ValueSetCategoryDto updated); @Override List<AddConsentFieldsDto> findAllValueSetCategoriesAddConsentFieldsDto();  }