org.jboss.cdi.tck.tests.deployment.packaging.war.modules
Class WebArchiveModulesTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
org.jboss.cdi.tck.tests.deployment.packaging.war.modules.WebArchiveModulesTest
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@SpecVersion(spec="cdi",
version="20091101")
public class WebArchiveModulesTest- extends AbstractTest
This test is aimed to verify packaging-related issues in a little bit more complex deployment scenario. The assertions are
rather informative and redundant as they're already verified in elementary tests.
- Author:
- Martin Kouba
| Fields inherited from class org.jboss.arquillian.testng.Arquillian |
ARQUILLIAN_DATA_PROVIDER |
|
Method Summary |
static org.jboss.shrinkwrap.api.spec.WebArchive |
createTestArchive()
Modules:
A - WEB-INF/classes BDA: Foo, Secured, SecurityInterceptor, Business, BusinessOperationEvent
B - WEB-INF/lib BDA: Bar, AlternativeBar, BarInspector
C - WEB-INF/lib BDA: Baz, LoggingDecorator, Bazinga
D - WEB-INF/lib BDA: Qux, ContainerEventsObserver, LegacyServiceProducer
E - WEB-INF/lib non-BDA: LegacyService
|
void |
testAlternatives(BarInspector barInspector)
|
void |
testDecoratorAndCrossModuleEventObserver()
|
void |
testExtensionAndContainerEvents()
|
void |
testInjectionChainVisibilityAndInterceptorEnablement()
|
void |
testProducerAndEventDuringDisposal()
|
| 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 |
WebArchiveModulesTest
public WebArchiveModulesTest()
createTestArchive
@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
- Modules:
- A - WEB-INF/classes BDA: Foo, Secured, SecurityInterceptor, Business, BusinessOperationEvent
- B - WEB-INF/lib BDA: Bar, AlternativeBar, BarInspector
- C - WEB-INF/lib BDA: Baz, LoggingDecorator, Bazinga
- D - WEB-INF/lib BDA: Qux, ContainerEventsObserver, LegacyServiceProducer
- E - WEB-INF/lib non-BDA: LegacyService
- Returns:
- test archive
testExtensionAndContainerEvents
@SpecAssertions(value=@SpecAssertion(section="11.5",id="bb"))
public void testExtensionAndContainerEvents()
throws Exception
- Throws:
Exception
testInjectionChainVisibilityAndInterceptorEnablement
@SpecAssertions(value={@SpecAssertion(section="12.1",id="bca"),@SpecAssertion(section="12.1",id="bcb"),@SpecAssertion(section="5.2.1",id="n")})
public void testInjectionChainVisibilityAndInterceptorEnablement()
testDecoratorAndCrossModuleEventObserver
@SpecAssertions(value={@SpecAssertion(section="8.3",id="aa"),@SpecAssertion(section="8.2",id="c"),@SpecAssertion(section="10.2",id="c")})
public void testDecoratorAndCrossModuleEventObserver()
throws Exception
- Throws:
Exception
testProducerAndEventDuringDisposal
@SpecAssertions(value={@SpecAssertion(section="3.3",id="aa"),@SpecAssertion(section="3.3",id="c"),@SpecAssertion(section="10.2",id="c")})
public void testProducerAndEventDuringDisposal()
throws Exception
- Throws:
Exception
testAlternatives
@SpecAssertions(value=@SpecAssertion(section="5.1.1",id="cg"))
public void testAlternatives(BarInspector barInspector)
throws Exception
- Throws:
Exception
Copyright © 2008-2012 Seam Framework. All Rights Reserved.