org.jboss.testharness.spi
Interface StandaloneContainers


public interface StandaloneContainers

Standalone mode deployment related operations. If the TCK is placed in standalone mode, unit tests will be deployed via this interface. You must implement this as part of the porting package if you intend to run the TCK in standalone mode

Author:
Pete Muir

Field Summary
static java.lang.String PROPERTY_NAME
           
 
Method Summary
 void cleanup()
          Called after the TCK finishes executing the testsuite.
 void deploy(java.lang.Iterable<java.lang.Class<?>> classes)
          Bootstrap the container by registering Beans and Observers, raising
 void deploy(java.lang.Iterable<java.lang.Class<?>> classes, java.lang.Iterable<java.net.URL> beansXmls)
          Bootstrap the container for a test by registering Beans and Observers, raising @Initialized event, validating the deployment, and raising the
 void setup()
          Called before the TCK starts executing the testsuite, but after the suite has been configured.
 void undeploy()
          Cleanup the container after this test
 

Field Detail

PROPERTY_NAME

static final java.lang.String PROPERTY_NAME
Method Detail

deploy

void deploy(java.lang.Iterable<java.lang.Class<?>> classes)
            throws DeploymentException

Bootstrap the container by registering Beans and Observers, raising

Parameters:
classes - the classes to deploy
Throws:
DeploymentException

deploy

void deploy(java.lang.Iterable<java.lang.Class<?>> classes,
            java.lang.Iterable<java.net.URL> beansXmls)
            throws DeploymentException

Bootstrap the container for a test by registering Beans and Observers, raising @Initialized event, validating the deployment, and raising the

Parameters:
classes - the classes to deploy
beansXmls - the beans.xml files to deploy
Throws:
DeploymentException

undeploy

void undeploy()
Cleanup the container after this test


setup

void setup()
Called before the TCK starts executing the testsuite, but after the suite has been configured. A TCK suite lifecycle callback, useful for setting up the container. This method may be a no-op if no setup is required.


cleanup

void cleanup()
Called after the TCK finishes executing the testsuite. A TCK suite lifecycle callback, useful for cleaning up and shutting down the container. This method may be a no-op if no setup is required.



Copyright © 2009. All Rights Reserved.