org.jboss.cdi.tck.tests.extensions.beanManager
Class BeanManagerTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.jboss.cdi.tck.AbstractTest
          extended by org.jboss.cdi.tck.tests.extensions.beanManager.BeanManagerTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

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

Mostly tests for extensions specified in chapter 11 of the specification and not already tested elsewhere. TODO add tests for custom scope, qualifier, stereotype, interceptor added via extension

Author:
David Allen, 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
BeanManagerTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testAmbiguousDependencyNotResolved()
           
 void testAmbiguousDependencyResolved()
           
 void testDetermineInterceptorBindingType()
           
 void testDetermineQualifierType()
           
 void testDetermineScope()
           
 void testDetermineScopeType()
           
 void testDetermineStereotype()
           
 void testGetELResolver()
           
 void testGetExtension()
          The method BeanManager.getExtension() returns the container's instance of an Extension class declared in META-INF/services, or throws an IllegalArgumentException if the container has no instance of the given class.
 void testGetMetaAnnotationsForInterceptorBindingType()
           
 void testGetMetaAnnotationsForStereotype()
           
 void testObtainingAnnotatedType()
           
 void testObtainingInjectionTarget()
           
 void testObtainingInjectionTargetWithDefinitionError()
           
 void testObtainingWrappedAnnotatedType()
           
 void testResolveWithEmptySet()
           
 void testResolveWithNull()
           
 void testValidateThrowsException()
           
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, isThrowablePresent, 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

BeanManagerTest

public BeanManagerTest()
Method Detail

createTestArchive

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

testAmbiguousDependencyResolved

@SpecAssertion(section="11.3.8",
               id="a")
public void testAmbiguousDependencyResolved()

testAmbiguousDependencyNotResolved

@SpecAssertion(section="11.3.8",
               id="b")
public void testAmbiguousDependencyNotResolved()

testValidateThrowsException

@SpecAssertion(section="11.3.9",
               id="a")
public void testValidateThrowsException()

testDetermineQualifierType

@SpecAssertion(section="11.3.14",
               id="aa")
public void testDetermineQualifierType()

testDetermineScope

@SpecAssertion(section="11.3.14",
               id="ab")
public void testDetermineScope()

testDetermineStereotype

@SpecAssertion(section="11.3.14",
               id="ac")
public void testDetermineStereotype()

testDetermineInterceptorBindingType

@SpecAssertion(section="11.3.14",
               id="ad")
public void testDetermineInterceptorBindingType()

testGetMetaAnnotationsForStereotype

@SpecAssertion(section="11.3.14",
               id="ae")
public void testGetMetaAnnotationsForStereotype()

testGetMetaAnnotationsForInterceptorBindingType

@SpecAssertion(section="11.3.14",
               id="af")
public void testGetMetaAnnotationsForInterceptorBindingType()

testDetermineScopeType

@SpecAssertion(section="11.3.14",
               id="ag")
public void testDetermineScopeType()

testGetELResolver

@SpecAssertion(section="11.3.17",
               id="a")
public void testGetELResolver()

testObtainingAnnotatedType

@SpecAssertions(value=@SpecAssertion(section="11.3.19",id="a"))
public void testObtainingAnnotatedType()

testObtainingWrappedAnnotatedType

public void testObtainingWrappedAnnotatedType()

testObtainingInjectionTarget

@SpecAssertion(section="11.3.20",
               id="aa")
public void testObtainingInjectionTarget()

testObtainingInjectionTargetWithDefinitionError

@SpecAssertion(section="11.3.20",
               id="ab")
public void testObtainingInjectionTargetWithDefinitionError()

testGetExtension

@SpecAssertions(value={@SpecAssertion(section="11.3.25",id="a"),@SpecAssertion(section="11.3.25",id="b")})
public void testGetExtension()
The method BeanManager.getExtension() returns the container's instance of an Extension class declared in META-INF/services, or throws an IllegalArgumentException if the container has no instance of the given class.


testResolveWithNull

@SpecAssertion(section="11.3.8",
               id="c")
public void testResolveWithNull()

testResolveWithEmptySet

@SpecAssertion(section="11.3.8",
               id="d")
public void testResolveWithEmptySet()


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