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

dev.galasa.framework.spi.Environment Maven / Gradle / Ivy

There is a newer version: 0.37.0
Show newest version
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.framework.spi;

/** 
 * An interface through which we can get environment variable values. 
 * Allows for easy mocking of the System class, which is notoriously hard to mock
 * out for unit tests.
 */
public interface Environment {

    /** Gets the value of a given environment variable. */
    String getenv(String propertyName);

    /** Gets a system property */
    String getProperty(String propertyName);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy