org.jboss.testharness.impl
Class ConfigurationImpl

java.lang.Object
  extended by org.jboss.testharness.impl.ConfigurationImpl
All Implemented Interfaces:
Configuration

public class ConfigurationImpl
extends Object
implements Configuration


Field Summary
 
Fields inherited from interface org.jboss.testharness.api.Configuration
CONNECT_TIMEOUT_PROPERTY_NAME, DEFAULT_CONNECT_DELAY, DEFAULT_HOST, DEFAULT_LIBRARY_DIRECTORY, DEFAULT_OUTPUT_DIRECTORY, DEFAULT_RUN_INTEGRATION_TESTS, DEFAULT_STANDALONE, DEFAULT_WRITE_DEPLOYED_ARCHIVES_TO_DISK, HOST_PROPERTY_NAME, LIBRARY_DIRECTORY_PROPERTY_NAME, OUTPUT_DIRECTORY_PROPERTY_NAME, RUN_INTEGRATION_TESTS_PROPERTY_NAME, STANDALONE_PROPERTY_NAME, TEST_PACKAGE_PROPERTY_NAME
 
Constructor Summary
protected ConfigurationImpl()
           
  ConfigurationImpl(Configuration configuration)
           
 
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.
 List<String> getExtraDeploymentProperties()
           
 List<String> getExtraPackages()
           
 List<ResourceDescriptor> getExtraResources()
           
 String getHost()
          The TCK will use this as the remote host to connect to run in container tests.
 TestLauncher getInContainerTestLauncher()
          The TCK test launcher
 String getLibraryDirectory()
          The TCK allows additional libraries to be put in the deployed test artifacts (for example the porting package for the implementation).
 String getOutputDirectory()
          The output directory to put TCK specific output.
 StandaloneContainers getStandaloneContainers()
          The implementation of StandaloneContainers in use.
 TestLauncher getTestLauncher()
           
 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 deploymentDelay)
           
 void setContainers(Containers containers)
           
 void setHost(String host)
           
 void setInContainerTestLauncher(TestLauncher testLauncher)
           
 void setLibraryDirectory(String libraryDir)
           
 void setOutputDirectory(String outputDirectory)
           
 void setRunIntegrationTests(boolean runIntegrationTests)
           
 void setStandalone(boolean standalone)
           
 void setStandaloneContainers(StandaloneContainers standaloneContainers)
           
 void setTestLauncher(TestLauncher testLauncher)
           
 void setTestPackage(String testPackage)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationImpl

protected ConfigurationImpl()

ConfigurationImpl

public ConfigurationImpl(Configuration configuration)
Method Detail

getOutputDirectory

public String getOutputDirectory()
Description copied from interface: Configuration
The output directory to put TCK specific output. The TestNG output directory is configured via TestNG. By default set to ${tmp}/jsr-299-tck

Specified by:
getOutputDirectory in interface Configuration

setOutputDirectory

public void setOutputDirectory(String outputDirectory)
Specified by:
setOutputDirectory in interface Configuration

isStandalone

public boolean isStandalone()
Description copied from interface: Configuration
Whether the TCK is in standalone mode or not. By default true

Specified by:
isStandalone in interface Configuration

setStandalone

public void setStandalone(boolean standalone)
Specified by:
setStandalone in interface Configuration

getConnectTimeout

public int getConnectTimeout()
Description copied from interface: Configuration
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

Specified by:
getConnectTimeout in interface Configuration

setConnectTimeout

public void setConnectTimeout(int deploymentDelay)
Specified by:
setConnectTimeout in interface Configuration

getLibraryDirectory

public String getLibraryDirectory()
Description copied from interface: Configuration
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.

Specified by:
getLibraryDirectory in interface Configuration

setLibraryDirectory

public void setLibraryDirectory(String libraryDir)
Specified by:
setLibraryDirectory in interface Configuration

getInContainerTestLauncher

public TestLauncher getInContainerTestLauncher()
Description copied from interface: Configuration
The TCK test launcher

Specified by:
getInContainerTestLauncher in interface Configuration
See Also:
TestLauncher

setInContainerTestLauncher

public void setInContainerTestLauncher(TestLauncher testLauncher)
Specified by:
setInContainerTestLauncher in interface Configuration

getContainers

public Containers getContainers()
Description copied from interface: Configuration
The implementation of Containers in use.

Specified by:
getContainers in interface Configuration

setContainers

public void setContainers(Containers containers)
Specified by:
setContainers in interface Configuration

isRunIntegrationTests

public boolean isRunIntegrationTests()
Description copied from interface: Configuration
Whether to run integration tests, by default false.

Specified by:
isRunIntegrationTests in interface Configuration

setRunIntegrationTests

public void setRunIntegrationTests(boolean runIntegrationTests)
Specified by:
setRunIntegrationTests in interface Configuration

getStandaloneContainers

public StandaloneContainers getStandaloneContainers()
Description copied from interface: Configuration
The implementation of StandaloneContainers in use.

Specified by:
getStandaloneContainers in interface Configuration

setStandaloneContainers

public void setStandaloneContainers(StandaloneContainers standaloneContainers)
Specified by:
setStandaloneContainers in interface Configuration

getHost

public String getHost()
Description copied from interface: Configuration
The TCK will use this as the remote host to connect to run in container tests. By default localhost:8080

Specified by:
getHost in interface Configuration

setHost

public void setHost(String host)
Specified by:
setHost in interface Configuration

getTestLauncher

public TestLauncher getTestLauncher()

setTestLauncher

public void setTestLauncher(TestLauncher testLauncher)

getExtraPackages

public List<String> getExtraPackages()
Specified by:
getExtraPackages in interface Configuration

getExtraResources

public List<ResourceDescriptor> getExtraResources()
Specified by:
getExtraResources in interface Configuration

getExtraDeploymentProperties

public List<String> getExtraDeploymentProperties()
Specified by:
getExtraDeploymentProperties in interface Configuration

getTestPackage

public String getTestPackage()
Specified by:
getTestPackage in interface Configuration

setTestPackage

public void setTestPackage(String testPackage)
Specified by:
setTestPackage in interface Configuration

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011. All Rights Reserved.