org.jboss.testharness.api
Interface Configuration


public interface Configuration

The configuration of the TCK. The TCK may be configured using system properties or placed in a properties file called META-INF/web-beans-tck.properties. Porting package property names are the FQCN of the SPI class. Other property names (one for each non-porting package SPI configuration option) are specified here. The defaults are also listed here. The TCK may also be configured programatically through this interface

Author:
Pete Muir

Field Summary
static java.lang.String CONNECT_TIMEOUT_PROPERTY_NAME
           
static int DEFAULT_CONNECT_DELAY
           
static int DEFAULT_CONNECT_RETRIES
           
static java.lang.String DEFAULT_HOST
           
static java.lang.String DEFAULT_LIBRARY_DIRECTORY
           
static java.lang.String DEFAULT_OUTPUT_DIRECTORY
           
static boolean DEFAULT_RUN_INTEGRATION_TESTS
           
static boolean DEFAULT_STANDALONE
           
static boolean DEFAULT_WRITE_DEPLOYED_ARCHIVES_TO_DISK
           
static java.lang.String HOST_PROPERTY_NAME
           
static java.lang.String LIBRARY_DIRECTORY_PROPERTY_NAME
           
static java.lang.String OUTPUT_DIRECTORY_PROPERTY_NAME
           
static java.lang.String RUN_INTEGRATION_TESTS_PROPERTY_NAME
           
static java.lang.String STANDALONE_PROPERTY_NAME
           
static java.lang.String TEST_PACKAGE_PROPERTY_NAME
           
 
Method Summary
 int getConnectTimeout()
          When the TCK is running in container tests it will attempt to connect to the server every 200ms until the timeout is reached.
 Containers getContainers()
          The implementation of Containers in use.
 java.util.List<java.lang.String> getExtraDeploymentProperties()
           
 java.util.List<java.lang.String> getExtraPackages()
           
 java.util.List<ResourceDescriptor> getExtraResources()
           
 java.lang.String getHost()
          The TCK will use this as the remote host to connect to run in container tests.
 TestLauncher getInContainerTestLauncher()
          The TCK test launcher
 java.lang.String getLibraryDirectory()
          The TCK allows additional libraries to be put in the deployed test artifacts (for example the porting package for the implementation).
 java.lang.String getOutputDirectory()
          The output directory to put TCK specific output.
 StandaloneContainers getStandaloneContainers()
          The implementation of StandaloneContainers in use.
 java.lang.String getTestPackage()
           
 boolean isRunIntegrationTests()
          Whether to run integration tests, by default false.
 boolean isStandalone()
          Whether the TCK is in standalone mode or not.
 void setConnectTimeout(int connectTimeout)
           
 void setContainers(Containers containers)
           
 void setHost(java.lang.String host)
           
 void setInContainerTestLauncher(TestLauncher testLauncher)
           
 void setLibraryDirectory(java.lang.String libraryDir)
           
 void setOutputDirectory(java.lang.String outputDirectory)
           
 void setRunIntegrationTests(boolean runIntegrationTests)
           
 void setStandalone(boolean standalone)
           
 void setStandaloneContainers(StandaloneContainers standaloneContainers)
           
 void setTestPackage(java.lang.String packageName)
           
 

Field Detail

OUTPUT_DIRECTORY_PROPERTY_NAME

static final java.lang.String OUTPUT_DIRECTORY_PROPERTY_NAME
See Also:
Constant Field Values

STANDALONE_PROPERTY_NAME

static final java.lang.String STANDALONE_PROPERTY_NAME
See Also:
Constant Field Values

RUN_INTEGRATION_TESTS_PROPERTY_NAME

static final java.lang.String RUN_INTEGRATION_TESTS_PROPERTY_NAME
See Also:
Constant Field Values

CONNECT_TIMEOUT_PROPERTY_NAME

static final java.lang.String CONNECT_TIMEOUT_PROPERTY_NAME
See Also:
Constant Field Values

LIBRARY_DIRECTORY_PROPERTY_NAME

static final java.lang.String LIBRARY_DIRECTORY_PROPERTY_NAME
See Also:
Constant Field Values

HOST_PROPERTY_NAME

static final java.lang.String HOST_PROPERTY_NAME
See Also:
Constant Field Values

TEST_PACKAGE_PROPERTY_NAME

static final java.lang.String TEST_PACKAGE_PROPERTY_NAME
See Also:
Constant Field Values

DEFAULT_OUTPUT_DIRECTORY

static final java.lang.String DEFAULT_OUTPUT_DIRECTORY

DEFAULT_STANDALONE

static final boolean DEFAULT_STANDALONE
See Also:
Constant Field Values

DEFAULT_RUN_INTEGRATION_TESTS

static final boolean DEFAULT_RUN_INTEGRATION_TESTS
See Also:
Constant Field Values

DEFAULT_CONNECT_DELAY

static final int DEFAULT_CONNECT_DELAY
See Also:
Constant Field Values

DEFAULT_WRITE_DEPLOYED_ARCHIVES_TO_DISK

static final boolean DEFAULT_WRITE_DEPLOYED_ARCHIVES_TO_DISK
See Also:
Constant Field Values

DEFAULT_LIBRARY_DIRECTORY

static final java.lang.String DEFAULT_LIBRARY_DIRECTORY

DEFAULT_HOST

static final java.lang.String DEFAULT_HOST
See Also:
Constant Field Values

DEFAULT_CONNECT_RETRIES

static final int DEFAULT_CONNECT_RETRIES
See Also:
Constant Field Values
Method Detail

getOutputDirectory

java.lang.String getOutputDirectory()
The output directory to put TCK specific output. The TestNG output directory is configured via TestNG. By default set to ${tmp}/jsr-299-tck


isStandalone

boolean isStandalone()
Whether the TCK is in standalone mode or not. By default true


getConnectTimeout

int getConnectTimeout()
When the TCK is running in container tests it will attempt to connect to the server every 200ms until the timeout is reached. By default 5000ms


getLibraryDirectory

java.lang.String getLibraryDirectory()
The TCK allows additional libraries to be put in the deployed test artifacts (for example the porting package for the implementation). Any jars in this directory will be added to the deployed artifact. By default no directory is used.


getInContainerTestLauncher

TestLauncher getInContainerTestLauncher()
The TCK test launcher

See Also:
TestLauncher

getContainers

Containers getContainers()
The implementation of Containers in use.


isRunIntegrationTests

boolean isRunIntegrationTests()
Whether to run integration tests, by default false.


setOutputDirectory

void setOutputDirectory(java.lang.String outputDirectory)

setStandalone

void setStandalone(boolean standalone)

setConnectTimeout

void setConnectTimeout(int connectTimeout)

setLibraryDirectory

void setLibraryDirectory(java.lang.String libraryDir)

setInContainerTestLauncher

void setInContainerTestLauncher(TestLauncher testLauncher)

setContainers

void setContainers(Containers containers)

getStandaloneContainers

StandaloneContainers getStandaloneContainers()
The implementation of StandaloneContainers in use.


setStandaloneContainers

void setStandaloneContainers(StandaloneContainers standaloneContainers)

setRunIntegrationTests

void setRunIntegrationTests(boolean runIntegrationTests)

getHost

java.lang.String getHost()
The TCK will use this as the remote host to connect to run in container tests. By default localhost:8080


setHost

void setHost(java.lang.String host)

getExtraPackages

java.util.List<java.lang.String> getExtraPackages()

getExtraResources

java.util.List<ResourceDescriptor> getExtraResources()

getExtraDeploymentProperties

java.util.List<java.lang.String> getExtraDeploymentProperties()

getTestPackage

java.lang.String getTestPackage()

setTestPackage

void setTestPackage(java.lang.String packageName)


Copyright © 2009. All Rights Reserved.