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.

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 testDetermineBindingType()
           
 void testDetermineInterceptorBindingType()
           
 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 testgetScope()
           
 void testObtainingAnnotatedType()
           
 void testObtainingInjectionTarget()
           
 void testObtainingWrappedAnnotatedType()
           
 void testValidateThrowsException()
           
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
annotationSetMatches, annotationSetMatches, deserialize, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, isThrowablePresent, rawTypeSetMatches, serialize, 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()

testDetermineBindingType

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

testDetermineScopeType

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

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()

testgetScope

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

testGetELResolver

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

testObtainingAnnotatedType

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

testObtainingWrappedAnnotatedType

@SpecAssertions(value=@SpecAssertion(section="11.3.18",id="b"))
public void testObtainingWrappedAnnotatedType()

testObtainingInjectionTarget

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

testGetExtension

@SpecAssertions(value={@SpecAssertion(section="11.3.24",id="a"),@SpecAssertion(section="11.3.24",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.



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