Class SimpleBeanDefinitionTest

  • All Implemented Interfaces:
    org.testng.IHookable, org.testng.ITestNGListener

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class SimpleBeanDefinitionTest
    extends AbstractTest
    • Constructor Detail

      • SimpleBeanDefinitionTest

        public SimpleBeanDefinitionTest()
    • Method Detail

      • createTestArchive

        @Deployment
        public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
      • testAbstractClassDeclaredInJavaNotDiscovered

        @SpecAssertion(section="what_classes_are_beans",
                       id="ca")
        public void testAbstractClassDeclaredInJavaNotDiscovered()
      • testStaticInnerClassDeclaredInJavaAllowed

        @SpecAssertions(@SpecAssertion(section="what_classes_are_beans",id="ba"))
        public void testStaticInnerClassDeclaredInJavaAllowed()
      • testNonStaticInnerClassDeclaredInJavaNotDiscovered

        @SpecAssertions(@SpecAssertion(section="what_classes_are_beans",id="b"))
        public void testNonStaticInnerClassDeclaredInJavaNotDiscovered()
      • testInterfaceNotDiscoveredAsSimpleBean

        @SpecAssertion(section="what_classes_are_beans",
                       id="cb")
        public void testInterfaceNotDiscoveredAsSimpleBean()
      • testExtensionNotDiscoveredAsSimpleBean

        @SpecAssertion(section="what_classes_are_beans",
                       id="g")
        public void testExtensionNotDiscoveredAsSimpleBean()
      • testSimpleBeanOnlyIfConstructorParameterless

        @SpecAssertion(section="what_classes_are_beans",
                       id="p")
        public void testSimpleBeanOnlyIfConstructorParameterless()
      • testSimpleBeanOnlyIfConstructorIsInitializer

        @SpecAssertion(section="what_classes_are_beans",
                       id="q")
        public void testSimpleBeanOnlyIfConstructorIsInitializer()
      • testInitializerAnnotatedConstructor

        @SpecAssertion(section="declaring_bean_constructor",
                       id="aa")
        public void testInitializerAnnotatedConstructor()
                                                 throws Exception
        Throws:
        Exception
      • testEmptyConstructorUsed

        @SpecAssertion(section="declaring_bean_constructor",id="ba") @SpecAssertion(section="declaring_managed_bean",id="a") @SpecAssertion(section="bean_constructors",id="a") @SpecAssertion(section="instantiation",id="ba")
        public void testEmptyConstructorUsed()
      • testInitializerAnnotatedConstructorUsedOverEmptyConstuctor

        @SpecAssertion(section="declaring_bean_constructor",id="aa") @SpecAssertion(section="instantiation",id="aa")
        public void testInitializerAnnotatedConstructorUsedOverEmptyConstuctor()
                                                                        throws Exception
        Throws:
        Exception
      • testDependentScopedBeanCanHaveNonStaticPublicField

        @SpecAssertion(section="managed_beans",
                       id="fa")
        public void testDependentScopedBeanCanHaveNonStaticPublicField()
                                                                throws Exception
        Throws:
        Exception