Class DeploymentDronePointsRegistry

java.lang.Object
org.jboss.arquillian.drone.impl.DeploymentDronePointsRegistry

public class DeploymentDronePointsRegistry extends Object
This registry keeps all DronePoints with the DronePoint.Lifecycle.DEPLOYMENT scope and the reference to the instance of the test class the DronePoint is declared in
  • Constructor Details

    • DeploymentDronePointsRegistry

      public DeploymentDronePointsRegistry()
  • Method Details

    • addDronePoint

      public boolean addDronePoint(DronePoint<?> deploymentDronePoint, Object testClass)
      Adds a DronePoint to the registry with the test class the DronePoint is declared in
      Parameters:
      deploymentDronePoint - a DronePoint to register
      testClass - a test class the DronePoint is declared in
      Returns:
      whether the addition was successful or not
    • filterDeploymentDronePoints

      public Map<DronePoint<?>,Object> filterDeploymentDronePoints(String deploymentName)
      Filter for finding deployment DronePoints tied to a deployment with the given deployment name
      Parameters:
      deploymentName - name of a deployment the injection points should be tied to
      Returns:
      a map of DronePoints and testClasses tied to a deployment with the given deployment name