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

info.novatec.testit.livingdoc.Variables Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package info.novatec.testit.livingdoc;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;


public class Variables implements ExecutionContext {
    private final Map variables = new HashMap();

    @Override
    public void setVariable(String symbol, Object value) {
        variables.put(symbol, value);
    }

    @Override
    public Object getVariable(String symbol) {
        return variables.get(symbol);
    }

    @Override
    public Map getAllVariables() {
        return Collections.unmodifiableMap(variables);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy