org.testng.xml.Parameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
A testing framework for the JVM
package org.testng.xml;
import org.testng.collections.ListMultiMap;
import org.testng.collections.Maps;
import java.util.List;
/**
* A holder class for parameters defined just in this tag and all parameters
* including the ones inherited from enclosing tags.
*/
public class Parameters {
private ListMultiMap m_localParameters = Maps.newListMultiMap();
private ListMultiMap m_allParameters = Maps.newListMultiMap();
public List getLocalParameter(String name) {
return m_localParameters.get(name);
}
public List getAllValues(String name) {
return m_allParameters.get(name);
}
public List getValue(String name) {
return m_localParameters.get(name);
}
public void addLocalParameter(String name, String value) {
m_localParameters.put(name, value);
m_allParameters.put(name, value);
}
public void addAllParameter(String name, String value) {
m_allParameters.put(name, value);
}
}