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, 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 |
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="init_events",id="bb"))
public void testExtensionAndContainerEvents()
throws Exception
- Throws:
Exception
testInjectionChainVisibilityAndInterceptorEnablement
@SpecAssertions(value={@SpecAssertion(section="bean_archive",id="jg"),@SpecAssertion(section="bean_archive",id="jh"),@SpecAssertion(section="performing_typesafe_resolution",id="n")})
public void testInjectionChainVisibilityAndInterceptorEnablement()
testDecoratorAndCrossModuleEventObserver
@SpecAssertions(value={@SpecAssertion(section="decorator_resolution",id="aa"),@SpecAssertion(section="enabled_decorators_bean_archive",id="a"),@SpecAssertion(section="observer_resolution",id="c")})
public void testDecoratorAndCrossModuleEventObserver()
throws Exception
- Throws:
Exception
testProducerAndEventDuringDisposal
@SpecAssertions(value={@SpecAssertion(section="producer_method",id="aa"),@SpecAssertion(section="producer_method",id="c"),@SpecAssertion(section="observer_resolution",id="c")})
public void testProducerAndEventDuringDisposal()
throws Exception
- Throws:
Exception
testAlternatives
@SpecAssertions(value=@SpecAssertion(section="declaring_selected_alternatives_bean_archive",id="i"))
public void testAlternatives(BarInspector barInspector)
throws Exception
- Throws:
Exception
Copyright © 2008-2013 Seam Framework. All Rights Reserved.