Package org.codehaus.cargo.sample.java
Class EnvironmentTestData
- java.lang.Object
-
- org.codehaus.cargo.sample.java.EnvironmentTestData
-
public class EnvironmentTestData extends Object
Groups together all environmental test data (i.e. data that depends on how the user has configured its tests to run in Maven).
-
-
Field Summary
Fields Modifier and Type Field Description StringconfigurationHomeDirectory where container execution will happen.StringcontainerHomeHome for the already installed container (in that case extractDir and installURL are ignored).StringcontainerIdName of container to run (this is the container ID, seeContainer.getId().longcontainerTimeoutTimeout to test if a container is correctly started or stopped.ContainerTypecontainerTypeThe container type (local, remote, etc)StringdownloadDirLocation where to put the zipped distributions.StringextractDirLocation where to extract the zipped distributions.URLinstallURLURL where the zipped container is located.static List<String>jakartaEeContainersContainers that can only use Jakarta EE deployables.StringjavaHomeJava Home used to start the container.intportPort on which to start the web container.ProxyproxyProxy properties if defined (can be null).intrmiPortPort on which to start RMI.Map<String,String>testDataArtifactsTest data artifacts.
-
Constructor Summary
Constructors Constructor Description EnvironmentTestData(String containerId, ContainerType containerType, String targetDirSuffix)
-
-
-
Field Detail
-
jakartaEeContainers
public static List<String> jakartaEeContainers
Containers that can only use Jakarta EE deployables.
-
containerId
public String containerId
Name of container to run (this is the container ID, seeContainer.getId(). We use it guess the XML name of the Ant task.
-
containerType
public ContainerType containerType
The container type (local, remote, etc)
-
installURL
public URL installURL
URL where the zipped container is located.
-
downloadDir
public String downloadDir
Location where to put the zipped distributions.
-
extractDir
public String extractDir
Location where to extract the zipped distributions.
-
port
public int port
Port on which to start the web container.
-
rmiPort
public int rmiPort
Port on which to start RMI.
-
containerTimeout
public long containerTimeout
Timeout to test if a container is correctly started or stopped.
-
configurationHome
public String configurationHome
Directory where container execution will happen.
-
containerHome
public String containerHome
Home for the already installed container (in that case extractDir and installURL are ignored).
-
javaHome
public String javaHome
Java Home used to start the container.
-
proxy
public Proxy proxy
Proxy properties if defined (can be null).
-
-
Constructor Detail
-
EnvironmentTestData
public EnvironmentTestData(String containerId, ContainerType containerType, String targetDirSuffix)
- Parameters:
containerId- the container's name (eg "resin3x")containerType- the container's typetargetDirSuffix- relative directory from the base target dir where to put test-generated files
-
-