Examples of destroyInstance()


Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

        try {
            destructor = registryInstance.get().getEntryFor(instanceClass, Destructor.class);
        } catch (Exception ignored) {
        }
        if (destructor != null && !destructor.getClass().equals(this.getClass())) {
            destructor.destroyInstance(instance);
        } else {
            instance.quit();
        }
    }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

            // get instance to be destroyed
            // if deployment failed, there is nothing to be destroyed
            Object instance = droneContext.get(typeClass, qualifier);
            if (instance != null) {
                destructor.destroyInstance(instance);
            }
            droneContext.remove(typeClass, qualifier);
        }
    }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

                // get instance to be destroyed
                // if deployment failed, there is nothing to be destroyed
                Object instance = droneMethodContext.get(parameterTypes[i], qualifier);
                if (instance != null) {
                    destructor.destroyInstance(instance);
                }

                droneMethodContext.remove(parameterTypes[i], qualifier);
            }
        }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

        try {
            destructor = registryInstance.get().getEntryFor(instanceClass, Destructor.class);
        } catch (Exception ignored) {
        }
        if (destructor != null && !destructor.getClass().equals(this.getClass())) {
            destructor.destroyInstance(instance);
        }
        // this is default destructor
        else {
            instance.quit();
        }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

            // get instance to be destroyed
            // if deployment failed, there is nothing to be destroyed
            Object instance = droneContext.get(typeClass, qualifier);
            if (instance != null) {
                instance = deenhance(typeClass, qualifier, instance);
                destructor.destroyInstance(instance);
            }
            droneContext.remove(typeClass, qualifier);
        }
    }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

                // get instance to be destroyed
                // if deployment failed, there is nothing to be destroyed
                Object instance = droneMethodContext.get(parameterTypes[i], qualifier);
                if (instance != null) {
                    instance = deenhance(type, qualifier, instance);
                    destructor.destroyInstance(instance);
                }

                droneMethodContext.remove(parameterTypes[i], qualifier);
            }
        }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

         Class<?> typeClass = f.getType();
         Class<? extends Annotation> qualifier = SecurityActions.getQualifier(f);

         @SuppressWarnings("rawtypes")
         Destructor destructor = getDestructorFor(typeClass);        
         destructor.destroyInstance(droneContext.get().get(typeClass, qualifier));
         droneContext.get().remove(typeClass, qualifier);
      }
   }

   @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

            Destructor destructor = getDestructorFor(parameterTypes[i]);

            DroneContext context = methodContext.get().get(method);
            Validate.notNull(context, "Method context should not be null");
           
            destructor.destroyInstance(context.get(parameterTypes[i], qualifier));
            context.remove(parameterTypes[i], qualifier);
         }
      }

   }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

                        instance.getClass().getSimpleName());
            }
        }

        if (destructor != null && !destructor.getClass().equals(this.getClass())) {
            destructor.destroyInstance(instance);
        }
        // this is default destructor
        else {
            instance.quit();
        }
View Full Code Here

Examples of org.jboss.arquillian.drone.webdriver.factory.RemoteWebDriverFactory.destroyInstance()

        // when
        fire(new BeforeSuite());

        RemoteWebDriver webdriver1 = factory1.createInstance(configuration);
        factory1.destroyInstance(webdriver1);
        webdriver1.quit();

        // then
        ReusedSession reusedSession = sessionStore.get().pull(initializationParameter);
        assertNotNull("reusedSession must be stored", reusedSession);
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.