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.
package com.accenture.testing.bdd.parameters;
import com.accenture.testing.bdd.util.BDDConfig;
import com.typesafe.config.Config;
import java.util.Objects;
public class VariableTransform extends ParamTransform {
private static Config config = BDDConfig.getConfig();
@Override
String key() {
return "vars";
}
@Override
String transform(String params, ParamTransformer pt) {
String confVal = config.getConfig("vars").getString(params);
if (Objects.isNull(confVal)) {
return params;
}
return confVal;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy