org.jboss.cdi.tck.tests.deployment.packaging.ear.modules
Class EnterpriseArchiveModulesTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.jboss.cdi.tck.AbstractTest
          extended by org.jboss.cdi.tck.tests.deployment.packaging.ear.modules.EnterpriseArchiveModulesTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

public class EnterpriseArchiveModulesTest
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. Note that we DO NOT include test class in EJB module since we wouldn't be able to inject bean from web module (Java EE classloading requirements)!

Author:
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
EnterpriseArchiveModulesTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createTestArchive()
          Modules: A - EJB jar BDA: Foo, BusinessOperationEventInspector B - EJB jar BDA: LegacyServiceProducer C - lib BDA: Bar, AlternativeBar, BarInspector, Util, Business, BusinessOperationEvent, BusinessOperationObservedEvent, NonEnterprise, Secured, SecurityInterceptor, LoggingDecorator D - lib non-BDA: LegacyService, ContainerEventsObserver E - web archive F - WEB-INF/classes BDA: Baz, Bazinga G - WEB-INF/lib BDA: Qux H - WEB-INF/classes non-BDA:
 void testAlternatives()
           
 void testDecoratorEnablement()
           
 void testExtensionAndContainerEvents()
           
 void testProducerAndEventDuringDisposal()
           
 void testVisibilityAndInterceptorEnablement()
           
 
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

EnterpriseArchiveModulesTest

public EnterpriseArchiveModulesTest()
Method Detail

createTestArchive

@Deployment
public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createTestArchive()
Modules:

Returns:
test archive

testExtensionAndContainerEvents

@SpecAssertions(value=@SpecAssertion(section="11.5",id="bb"))
public void testExtensionAndContainerEvents()
                                     throws Exception
Throws:
Exception

testVisibilityAndInterceptorEnablement

@SpecAssertions(value={@SpecAssertion(section="12.1",id="bba"),@SpecAssertion(section="12.1",id="bbb"),@SpecAssertion(section="12.1",id="bbc"),@SpecAssertion(section="12.1",id="bbe"),@SpecAssertion(section="5.2.1",id="n")})
public void testVisibilityAndInterceptorEnablement()
                                            throws Exception
Throws:
Exception

testDecoratorEnablement

@SpecAssertions(value={@SpecAssertion(section="8.3",id="aa"),@SpecAssertion(section="8.2",id="a")})
public void testDecoratorEnablement()
                             throws Exception
Throws:
Exception

testProducerAndEventDuringDisposal

@SpecAssertions(value={@SpecAssertion(section="3.3",id="aa"),@SpecAssertion(section="3.3",id="c"),@SpecAssertion(section="10.2",id="i")})
public void testProducerAndEventDuringDisposal()
                                        throws Exception
Throws:
Exception

testAlternatives

@SpecAssertions(value=@SpecAssertion(section="5.1.1",id="c"))
public void testAlternatives()
                      throws Exception
Throws:
Exception


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