Class TestDescription
- java.lang.Object
-
- org.jboss.as.arquillian.protocol.jmx.TestDescription
-
public class TestDescription extends Object
A simple definition describing a test deployment.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddTestDescription(org.jboss.arquillian.container.test.spi.TestDeployment testDeployment)Creates a test description based on the test deployment and attaches the description to the deployment for later usage.Optional<String>arquillianDeploymentName()The name of the deployment relevant to Arquillian.StringdeploymentName()The deployments name.booleanequals(Object o)static TestDescriptionfrom(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)Gets the test description from the deployment.inthashCode()Optional<String>targetContainer()The container the test and deployment target.StringtoString()
-
-
-
Method Detail
-
from
public static TestDescription from(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
Gets the test description from the deployment.- Parameters:
deploymentUnit- the deployment unit- Returns:
- the test description from the deployment
-
addTestDescription
public static void addTestDescription(org.jboss.arquillian.container.test.spi.TestDeployment testDeployment)
Creates a test description based on the test deployment and attaches the description to the deployment for later usage. For EAR's this attaches the configuration to each module in the EAR.- Parameters:
testDeployment- the test deployment to gather information from
-
targetContainer
public Optional<String> targetContainer()
The container the test and deployment target.- Returns:
- the optional name of the target container for the test
-
deploymentName
public String deploymentName()
The deployments name. This will be the name of the deployed archive.- Returns:
- the deployments name
-
arquillianDeploymentName
public Optional<String> arquillianDeploymentName()
The name of the deployment relevant to Arquillian. This is the value fromDeployment.name()- Returns:
- the optional name of the arquillian deployment
-
-