org.jboss.cdi.tck.tests.deployment.packaging.ear
Class SingleWebModuleWithExtensionTest

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.SingleWebModuleWithExtensionTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@SpecVersion(spec="cdi",
             version="20091101")
public class SingleWebModuleWithExtensionTest
extends AbstractTest

This test verifies that a CDI extension can be used with a web application bundled inside of an enterprise archive (.ear) 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)!

This test was originally part of Seam Compatibility project.

TODO verify assertions

Author:
Jozef Hartinger, Martin Kouba
See Also:
https://issues.jboss.org/browse/JBAS-8683

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
SingleWebModuleWithExtensionTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createTestArchive()
           
 void testSingleWebModuleWithExtension()
           
 
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

SingleWebModuleWithExtensionTest

public SingleWebModuleWithExtensionTest()
Method Detail

createTestArchive

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

testSingleWebModuleWithExtension

@SpecAssertions(value={@SpecAssertion(section="12.1",id="bbc"),@SpecAssertion(section="12.1",id="bbe")})
public void testSingleWebModuleWithExtension()


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