org.jboss.cdi.tck.tests.deployment.shutdown
Class ApplicationShutdownLifecycleTest

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

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

Test application shutdown lifecycle.

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
ApplicationShutdownLifecycleTest()
           
 
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 testShutdown(URL fooContext, URL infoContext)
          Note that this test method depends on (must be run after)
 
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

ApplicationShutdownLifecycleTest

public ApplicationShutdownLifecycleTest()
Method Detail

createFooTestArchive

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

createBarTestArchive

@Deployment(name="info",
            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:
#testShutdown()

testShutdown

@SpecAssertions(value={@SpecAssertion(section="12.3",id="a"),@SpecAssertion(section="12.3",id="b"),@SpecAssertion(section="12.3",id="c"),@SpecAssertion(section="6.7.1",id="ja"),@SpecAssertion(section="6.7.3",id="ga"),@SpecAssertion(section="11.5.4",id="a")})
public void testShutdown(@ArquillianResource@OperateOnDeployment(value="foo")
                                                                                                                            URL fooContext,
                                                                                                                            @ArquillianResource@OperateOnDeployment(value="info")
                                                                                                                            URL infoContext)
                  throws Exception
Note that this test method depends on (must be run after)

Throws:
Exception


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