ru.yandex.qatools.allure.plugins.DefaultEnvironment Maven / Gradle / Ivy
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