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

dev.galasa.extensions.mocks.MockEnvironment 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.extensions.mocks;

import dev.galasa.framework.spi.Environment;

import java.util.HashMap;
import java.util.Map;
public class MockEnvironment implements Environment {

    private Map envProps;

    public MockEnvironment() {
        this.envProps = new HashMap();
    }

    public void setenv(String propertyName, String value ) {
        this.envProps.put(propertyName, value);
    }

    @Override
    public String getenv(String propertyName) {
        return this.envProps.get(propertyName);
    }

    @Override
    public String getProperty(String propertyName) {
        throw new UnsupportedOperationException("Unimplemented method 'getProperty'");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy