Examples of DroneContext


Examples of org.jboss.arquillian.drone.spi.DroneContext

            destroyDroneCommand.fire(new DestroyDrone(injectionPoint));
        }
    }

    public void beforeUndeploy(@Observes BeforeUnDeploy event) {
        DroneContext context = droneContext.get();
        DeploymentFilter deploymentFilter = new DeploymentFilter(Pattern.quote(event.getDeployment().getName()));
        List<InjectionPoint<?>> injectionPoints = context.find(Object.class, deploymentFilter);

        for (InjectionPoint<?> injectionPoint : injectionPoints) {
            destroyDroneCommand.fire(new DestroyDrone(injectionPoint));
        }
    }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.DroneContext

            destroyDroneCommand.fire(new DestroyDrone(injectionPoint));
        }
    }

    public void afterClass(@Observes AfterClass event) {
        DroneContext context = droneContext.get();

        LifecycleFilter lifecycleFilter = new LifecycleFilter(InjectionPoint.Lifecycle.CLASS,
            InjectionPoint.Lifecycle.METHOD);
        List<InjectionPoint<?>> injectionPoints = context.find(Object.class, lifecycleFilter);

        for (InjectionPoint<?> injectionPoint : injectionPoints) {
            destroyDroneCommand.fire(new DestroyDrone(injectionPoint));
        }
    }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.DroneContext

        if (!dronePoint.conformsTo(WebDriver.class)) {
            // This Drone is not instance of WebDriver, we will not resize the window
            return;
        }
        DroneContext context = droneContext.get();

        WebDriver driver = context.get(dronePoint).getInstanceAs(WebDriver.class);

        // let's get browser configuration
        Validate.stateNotNull(context, "DroneContext must not be null");
        WebDriverConfiguration configuration = context.get(dronePoint).getConfigurationAs(WebDriverConfiguration.class);
        Validate.stateNotNull(configuration, "WebDriver configuration must not be null");

        String dimensions = configuration.getDimensions();

        if (dimensions != null) {
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.DroneContext

        // check if any parameter is @Drone annotated
        Method method = event.getTestMethod();
        Map<Integer, Annotation[]> droneParameters = SecurityActions.getParametersWithAnnotation(method, Drone.class);

        DroneContext context = droneContext.get();
        Validate.stateNotNull(context, "DroneContext should not be null");

        DroneScopeChecker scopeChecker = new DroneScopeChecker();

        Class<?>[] parameters = method.getParameterTypes();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.