org.jboss.cdi.tck.tests.context.application.destroy
Class ApplicationContextDestructionTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.jboss.cdi.tck.AbstractTest
          extended by org.jboss.cdi.tck.tests.context.application.destroy.ApplicationContextDestructionTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

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

Test that the application context is destroyed when the application is shut down.

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
ApplicationContextDestructionTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createBarTestArchive()
           
static org.jboss.shrinkwrap.api.spec.WebArchive createFooTestArchive()
           
 void deployArchives()
          This is not a real test method.
 void testApplicationContextDestroyed(URL fooContext, URL barContext)
          Note that this test method depends on (must be run after) deployArchives().
 
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
 

Constructor Detail

ApplicationContextDestructionTest

public ApplicationContextDestructionTest()
Method Detail

createFooTestArchive

@Deployment(name="foo",
            managed=false,
            testable=false)
public static org.jboss.shrinkwrap.api.spec.WebArchive createFooTestArchive()

createBarTestArchive

@Deployment(name="bar",
            managed=false,
            testable=false)
public static org.jboss.shrinkwrap.api.spec.WebArchive createBarTestArchive()

deployArchives

public void deployArchives()
This is not a real test method.

See Also:
testApplicationContextDestroyed(URL, URL)

testApplicationContextDestroyed

@SpecAssertion(section="application_context",
               id="f")
public void testApplicationContextDestroyed(@ArquillianResource@OperateOnDeployment(value="foo")
                                                          URL fooContext,
                                                          @ArquillianResource@OperateOnDeployment(value="bar")
                                                          URL barContext)
                                     throws Exception
Note that this test method depends on (must be run after) deployArchives().

Parameters:
fooContext -
barContext -
Throws:
Exception


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