com.accenture.testing.bdd.parameters.VariableTransform Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bdd-for-all Show documentation
Show all versions of bdd-for-all Show documentation
A simple to use, easy to integrate, BDD library for API and microservices development.
The newest version!
package com.accenture.testing.bdd.parameters;
import com.accenture.testing.bdd.config.BDDConfig;
import java.util.Objects;
import org.apache.commons.configuration2.HierarchicalConfiguration;
public class VariableTransform extends ParamTransform {
private static HierarchicalConfiguration config = BDDConfig.getConfig();
@Override
String key() {
return "vars";
}
@Override
String transform(String params, ParamTransformer pt) {
String confVal = config.configurationAt("vars").getString(params);
if (Objects.isNull(confVal)) {
return params;
}
return confVal;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy