All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fluentlenium.adapter.SharedWebDriverContainerShutdownHook Maven / Gradle / Ivy

There is a newer version: 5.0.4
Show newest version
package org.fluentlenium.adapter;

/**
 * Shutdown hook closing the Shared WebDriver container when JVM is closing.
 */
public class SharedWebDriverContainerShutdownHook extends Thread {

    /**
     * Creates a new shutdown hook.
     *
     * @param name thread name
     */
    public SharedWebDriverContainerShutdownHook(String name) {
        super(name);
    }

    @Override
    public void start() {
        synchronized (this) {
            SharedWebDriverContainer.INSTANCE.quitAll();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy