io.github.kgress.scaffold.TestContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
Core components for Scaffold
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