org.jboss.cdi.tck.tests.implementation.enterprise.definition
Class EnterpriseBeanDefinitionTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.jboss.cdi.tck.AbstractTest
          extended by org.jboss.cdi.tck.tests.implementation.enterprise.definition.EnterpriseBeanDefinitionTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@SpecVersion(spec="cdi",
             version="20091101")
public class EnterpriseBeanDefinitionTest
extends AbstractTest

Author:
Nicklas Karlsson, Martin Kouba

Field Summary
 
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
 
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
 
Constructor Summary
EnterpriseBeanDefinitionTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testBeanTypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()
           
 void testBeanWithNamedAnnotation()
           
 void testBeanWithQualifiers()
           
 void testBeanWithScopeAnnotation()
           
 void testBeanWithStereotype()
           
 void testConstructorAnnotatedInjectCalled()
           
 void testConstructorWithNoParamsUsed(NoParamConstructorSessionBean noParamConstructorSessionBean)
           
 void testDefaultName()
           
 void testEnterpriseBeanClassLocalView()
           
 void testObjectIsInAPITypes()
           
 void testRemoteInterfacesAreNotInAPITypes()
           
 void testSingletonWithApplicationScopeOK()
           
 void testSingletonWithDependentScopeOK()
           
 void testStatelessMustBeDependentScoped()
           
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterpriseBeanDefinitionTest

public EnterpriseBeanDefinitionTest()
Method Detail

createTestArchive

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

testStatelessMustBeDependentScoped

@SpecAssertion(section="session_beans",
               id="b")
public void testStatelessMustBeDependentScoped()

testConstructorAnnotatedInjectCalled

@SpecAssertions(value={@SpecAssertion(section="declaring_bean_constructor",id="ab"),@SpecAssertion(section="instantiation",id="ab")})
public void testConstructorAnnotatedInjectCalled()

testConstructorWithNoParamsUsed

@SpecAssertion(section="instantiation",
               id="bb")
public void testConstructorWithNoParamsUsed(NoParamConstructorSessionBean noParamConstructorSessionBean)

testSingletonWithDependentScopeOK

@SpecAssertion(section="session_beans",
               id="c")
public void testSingletonWithDependentScopeOK()

testSingletonWithApplicationScopeOK

@SpecAssertion(section="session_beans",
               id="c")
public void testSingletonWithApplicationScopeOK()

testBeanTypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces

@SpecAssertions(value={@SpecAssertion(section="session_bean_types",id="aa"),@SpecAssertion(section="declaring_session_bean",id="c")})
public void testBeanTypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()

testEnterpriseBeanClassLocalView

@SpecAssertion(section="session_bean_types",
               id="ba")
public void testEnterpriseBeanClassLocalView()

testObjectIsInAPITypes

@SpecAssertions(value={@SpecAssertion(section="session_bean_types",id="c"),@SpecAssertion(section="declaring_session_bean",id="aa"),@SpecAssertion(section="bean_types",id="l")})
public void testObjectIsInAPITypes()

testRemoteInterfacesAreNotInAPITypes

@SpecAssertion(section="session_bean_types",
               id="d")
public void testRemoteInterfacesAreNotInAPITypes()

testBeanWithScopeAnnotation

@SpecAssertions(value={@SpecAssertion(section="declaring_session_bean",id="ba"),@SpecAssertion(section="session_beans",id="e")})
public void testBeanWithScopeAnnotation()

testBeanWithNamedAnnotation

@SpecAssertion(section="declaring_session_bean",
               id="bb")
public void testBeanWithNamedAnnotation()

testBeanWithStereotype

@SpecAssertion(section="declaring_session_bean",
               id="bd")
public void testBeanWithStereotype()

testBeanWithQualifiers

@SpecAssertion(section="declaring_session_bean",
               id="be")
public void testBeanWithQualifiers()

testDefaultName

@SpecAssertion(section="session_bean_name",
               id="a")
public void testDefaultName()


Copyright © 2008-2013 Seam Framework. All Rights Reserved.