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

io.github.kgress.scaffold.TestContext Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package io.github.kgress.scaffold;

/**
 * A simple Singleton approach for creating a new instance of a {@link WebDriverManager} and Test.
 */
public class TestContext extends BaseTestContext {

    private TestContext() {
    }        // Uninstantiable

    // TestContext is a lazy singleton, therefore we use the Initialization on Demand Holder
    private static class Holder {
        private static final TestContext INSTANCE = new TestContext();
    }

    public static TestContext baseContext() {
        return Holder.INSTANCE;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy