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 Details

    • 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 from Deployment.name()
      Returns:
      the optional name of the arquillian deployment
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object