org.jboss.cdi.tck.tests.alternative.selection
Class SelectedAlternative04Test
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
org.jboss.cdi.tck.tests.alternative.selection.SelectedAlternative04Test
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@SpecVersion(spec="cdi",
version="20091101")
public class SelectedAlternative04Test- extends AbstractTest
Test various alternatives are selected for the entire application but deselected for a specific bean archive.
WAR deployment with 2 libraries:
- WEB-INF/classes - alpha - does not declare any alternative, has all alternatives deselected
- lib 1 - bravo - declares
Foo alternative selected for the app with priority 1000, and alternative stereotype
SelectedStereotype for the app with pr iority 60
- lib 2 - charlie - declares
Bar alternative selected for the app with priority 1100
Expected results:
- none of the alternatives is available for injection in alpha
Foo is available for injection in bravo, charlie
Bar with Wild qualifier is available for injection in bravo, charlie
Bar with Tame qualifier is available for injection in bravo, charlie
Baz is available for injection in bravo, charlie
- Author:
- Martin Kouba
| Fields inherited from class org.jboss.arquillian.testng.Arquillian |
ARQUILLIAN_DATA_PROVIDER |
| 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 |
SelectedAlternative04Test
public SelectedAlternative04Test()
createTestArchive
@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
testAlternativeManagedBeanDeselected
@SpecAssertions(value=@SpecAssertion(section="5.1.1",id="da"))
public void testAlternativeManagedBeanDeselected()
testAlternativeProducerDeselected
@SpecAssertions(value={@SpecAssertion(section="5.1.1",id="dc"),@SpecAssertion(section="5.1.1",id="dd")})
public void testAlternativeProducerDeselected()
testAlternativeStereotypeDeselected
@SpecAssertions(value=@SpecAssertion(section="5.1.1",id="df"))
public void testAlternativeStereotypeDeselected()
Copyright © 2008-2012 Seam Framework. All Rights Reserved.