test_class.file: Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/model/service/impl/DefaultValueGeneratorManagerTest.java
test_class.identifier: DefaultValueGeneratorManagerTest
test_class.superclass: extends AbstractGeneratorTest
test_case.body: @Test
  	public void testGeneratorTypesForIdentity() {
  		List<ValueGeneratorDto> generators = valueGeneratorManager
  				.getAvailableGenerators(IdmIdentityDto.class);
  
  		for (ValueGeneratorDto generator : generators) {
  			try {
  				Class.forName(generator.getDtoType());
  				Class.forName(generator.getGeneratorType());
  				assertEquals(IdmIdentityDto.class.getCanonicalName(), generator.getDtoType());
  			} catch (ClassNotFoundException e) {
  				fail(e.getMessage());
  			}
  		}
  	}
test_case.class_method_signature: DefaultValueGeneratorManagerTest.testGeneratorTypesForIdentity()
test_case.full_signature: @Test public void testGeneratorTypesForIdentity()
test_case.identifier: testGeneratorTypesForIdentity
test_case.invocations: getAvailableGenerators forName getDtoType forName getGeneratorType assertEquals getCanonicalName getDtoType fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGeneratorTypesForIdentity()
focal_class.declarator: LOG = org.slf4j.LoggerFactory.getLogger(DefaultValueGeneratorManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(DefaultValueGeneratorManager.class);
focal_class.type: org.slf4j.Logger
focal_class.var_name: LOG
focal_class.declarator: service
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmGenerateValueService service;
focal_class.type: IdmGenerateValueService
focal_class.var_name: service
focal_class.declarator: context
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ApplicationContext context;
focal_class.type: ApplicationContext
focal_class.var_name: context
focal_class.declarator: enabledEvaluator
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private EnabledEvaluator enabledEvaluator;
focal_class.type: EnabledEvaluator
focal_class.var_name: enabledEvaluator
focal_class.declarator: generators = null
focal_class.modifier: private
focal_class.original_string: private Map<String, ValueGenerator<? extends AbstractDto>> generators = null;
focal_class.type: Map<String, ValueGenerator<? extends AbstractDto>>
focal_class.var_name: generators
focal_class.file: Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/model/service/impl/DefaultValueGeneratorManager.java
focal_class.identifier: DefaultValueGeneratorManager
focal_class.interfaces: implements ValueGeneratorManager
focal_class.class_method_signature: DefaultValueGeneratorManager.generate(DTO dto)
focal_class.full_signature: @Override public DTO generate(DTO dto)
focal_class.identifier: generate
focal_class.modifiers: @Override public
focal_class.parameters: (DTO dto)
focal_class.return: DTO
focal_class.signature: DTO generate(DTO dto)
focal_class.class_method_signature: DefaultValueGeneratorManager.getAvailableGenerators(Class<? extends AbstractDto> dtoType)
focal_class.full_signature: @Override public List<ValueGeneratorDto> getAvailableGenerators(Class<? extends AbstractDto> dtoType)
focal_class.identifier: getAvailableGenerators
focal_class.modifiers: @Override public
focal_class.parameters: (Class<? extends AbstractDto> dtoType)
focal_class.return: List<ValueGeneratorDto>
focal_class.signature: List<ValueGeneratorDto> getAvailableGenerators(Class<? extends AbstractDto> dtoType)
focal_class.class_method_signature: DefaultValueGeneratorManager.getSupportedTypes()
focal_class.full_signature: @Override public Set<Class<? extends AbstractDto>> getSupportedTypes()
focal_class.identifier: getSupportedTypes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<Class<? extends AbstractDto>>
focal_class.signature: Set<Class<? extends AbstractDto>> getSupportedTypes()
focal_class.class_method_signature: DefaultValueGeneratorManager.supportsGenerating(AbstractDto dto)
focal_class.full_signature: @Override public boolean supportsGenerating(AbstractDto dto)
focal_class.identifier: supportsGenerating
focal_class.modifiers: @Override public
focal_class.parameters: (AbstractDto dto)
focal_class.return: boolean
focal_class.signature: boolean supportsGenerating(AbstractDto dto)
focal_class.class_method_signature: DefaultValueGeneratorManager.getGenerator(IdmGenerateValueDto generatorDto)
focal_class.full_signature: @SuppressWarnings("unchecked") private ValueGenerator<E> getGenerator(IdmGenerateValueDto generatorDto)
focal_class.identifier: getGenerator
focal_class.modifiers: @SuppressWarnings("unchecked") private
focal_class.parameters: (IdmGenerateValueDto generatorDto)
focal_class.return: ValueGenerator<E>
focal_class.signature: ValueGenerator<E> getGenerator(IdmGenerateValueDto generatorDto)
focal_class.class_method_signature: DefaultValueGeneratorManager.toDto(ValueGenerator<?> valueGenerator)
focal_class.full_signature: private ValueGeneratorDto toDto(ValueGenerator<?> valueGenerator)
focal_class.identifier: toDto
focal_class.modifiers: private
focal_class.parameters: (ValueGenerator<?> valueGenerator)
focal_class.return: ValueGeneratorDto
focal_class.signature: ValueGeneratorDto toDto(ValueGenerator<?> valueGenerator)
focal_class.class_method_signature: DefaultValueGeneratorManager.getAllGenerators()
focal_class.full_signature: @SuppressWarnings("unchecked") private Map<String, ValueGenerator<? extends AbstractDto>> getAllGenerators()
focal_class.identifier: getAllGenerators
focal_class.modifiers: @SuppressWarnings("unchecked") private
focal_class.parameters: ()
focal_class.return: Map<String, ValueGenerator<? extends AbstractDto>>
focal_class.signature: Map<String, ValueGenerator<? extends AbstractDto>> getAllGenerators()
focal_class.class_method_signature: DefaultValueGeneratorManager.getEnabledGenerateValues(Class<? extends AbstractDto> dtoType)
focal_class.full_signature: private List<IdmGenerateValueDto> getEnabledGenerateValues(Class<? extends AbstractDto> dtoType)
focal_class.identifier: getEnabledGenerateValues
focal_class.modifiers: private
focal_class.parameters: (Class<? extends AbstractDto> dtoType)
focal_class.return: List<IdmGenerateValueDto>
focal_class.signature: List<IdmGenerateValueDto> getEnabledGenerateValues(Class<? extends AbstractDto> dtoType)
focal_method.body: @Override
  	public List<ValueGeneratorDto> getAvailableGenerators(Class<? extends AbstractDto> dtoType) {
  		return getAllGenerators()
  				.values()
  				.stream()
  				.filter(generator -> {
  					return !generator.isDisabled() 
  							&& enabledEvaluator.isEnabled(generator)
  							&& (dtoType == null || generator.supports(dtoType));
  				})
  				.map(this::toDto)
  				.collect(Collectors.toList());
  	}
focal_method.class_method_signature: DefaultValueGeneratorManager.getAvailableGenerators(Class<? extends AbstractDto> dtoType)
focal_method.full_signature: @Override public List<ValueGeneratorDto> getAvailableGenerators(Class<? extends AbstractDto> dtoType)
focal_method.identifier: getAvailableGenerators
focal_method.invocations: collect map filter stream values getAllGenerators isDisabled isEnabled supports toList
focal_method.modifiers: @Override public
focal_method.parameters: (Class<? extends AbstractDto> dtoType)
focal_method.return: List<ValueGeneratorDto>
focal_method.signature: List<ValueGeneratorDto> getAvailableGenerators(Class<? extends AbstractDto> dtoType)