@@ -0,0 +1,2838 @@
+package com.github.persapiens.jsfboot.annotations;%0A%0Aimport org.testng.annotations.Test;%0Aimport org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;%0Aimport org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition;%0Aimport org.springframework.core.type.AnnotationMetadata;%0Aimport org.springframework.core.type.StandardAnnotationMetadata;%0Aimport static org.assertj.core.api.Assertions.assertThat;%0Aimport org.springframework.beans.factory.support.BeanDefinitionRegistry;%0Aimport org.springframework.beans.factory.support.SimpleBeanDefinitionRegistry;%0Aimport org.springframework.context.annotation.AnnotationBeanNameGenerator;%0A%0A@Test%0Apublic class JsfCdiToSpringBeanNameGeneratorIT %7B%0A%0A    public void testViewScope() %7B%0A        AnnotationMetadata annotationMetadata = new StandardAnnotationMetadata(ViewScopedClass.class);%0A        AnnotatedBeanDefinition beanDefinition = new AnnotatedGenericBeanDefinition(annotationMetadata);%0A        %0A        BeanDefinitionRegistry registry= new SimpleBeanDefinitionRegistry();%0A        %0A        AnnotationBeanNameGenerator annotationBeanNameGeneratorannotationScopeMetadataResolver = %0A            new JsfCdiToSpringBeanNameGenerator();%0A        %0A        annotationBeanNameGeneratorannotationScopeMetadataResolver.generateBeanName(%0A            beanDefinition, registry);%0A        %0A        assertThat(beanDefinition.getScope()).isEqualTo(JsfCdiToSpring.VIEW);%0A    %7D%0A%0A    public void testSessionScope() %7B%0A        AnnotationMetadata annotationMetadata = new StandardAnnotationMetadata(SessionScopedClass.class);%0A        AnnotatedBeanDefinition beanDefinition = new AnnotatedGenericBeanDefinition(annotationMetadata);%0A        %0A        BeanDefinitionRegistry registry= new SimpleBeanDefinitionRegistry();%0A        %0A        AnnotationBeanNameGenerator annotationBeanNameGeneratorannotationScopeMetadataResolver = %0A            new JsfCdiToSpringBeanNameGenerator();%0A        %0A        annotationBeanNameGeneratorannotationScopeMetadataResolver.generateBeanName(%0A            beanDefinition, registry);%0A        %0A        assertThat(beanDefinition.getScope()).isEqualTo(JsfCdiToSpring.SESSION);%0A    %7D%0A%0A    public void testNoScope() %7B%0A        AnnotationMetadata annotationMetadata = new StandardAnnotationMetadata(NoScopedClass.class);%0A        AnnotatedBeanDefinition beanDefinition = new AnnotatedGenericBeanDefinition(annotationMetadata);%0A        %0A        BeanDefinitionRegistry registry= new SimpleBeanDefinitionRegistry();%0A        %0A        AnnotationBeanNameGenerator annotationBeanNameGeneratorannotationScopeMetadataResolver = %0A            new JsfCdiToSpringBeanNameGenerator();%0A        %0A        annotationBeanNameGeneratorannotationScopeMetadataResolver.generateBeanName(%0A            beanDefinition, registry);%0A        %0A        assertThat(beanDefinition.getScope()).isEmpty();%0A    %7D%0A%0A%7D%0A

fix #105 JsfCdiToSpringBeanNameGeneratorIT created