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

ru.yandex.qatools.allure.plugins.DefaultEnvironment Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
package ru.yandex.qatools.allure.plugins;

import java.util.Map;

/**
 * @author Dmitry Baev [email protected]
 *         Date: 05.10.15
 */
public class DefaultEnvironment implements Environment {

    private final String id;

    private final String name;

    private final String url;

    private final Map parameters;

    /**
     * Creates an instance of environment.
     */
    public DefaultEnvironment(String id, String name, String url, Map parameters) {
        this.id = id;
        this.name = name != null ? name : "Allure Test Run";
        this.url = url;
        this.parameters = parameters;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getName() {
        return name;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getUrl() {
        return url;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getId() {
        return id;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Map getParameters() {
        return parameters;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy