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 String
containerId
Name of container to run (this is the container ID, seeContainer.getId()
.long
containerTimeout
Timeout to test if a container is correctly started or stopped.ContainerType
containerType
The container type (local, remote, etc)String
downloadDir
Location where to put the zipped distributions.String
extractDir
Location where to extract the zipped distributions.String
home
Home for the already installed container (in that case extractDir and installURL are ignored).URL
installURL
URL where the zipped container is located.static List<String>
jakartaEeContainers
Containers that can only use Jakarta EE deployables.String
javaHome
Java Home used to start the container.int
port
Port on which to start the web container.Proxy
proxy
Proxy properties if defined (can be null).int
rmiPort
Port on which to start RMI.String
targetDir
Target directory where build results are stored and where container execution will happen.Map<String,String>
testDataArtifacts
Test 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.
-
targetDir
public String targetDir
Target directory where build results are stored and where container execution will happen.
-
home
public String home
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
-
-