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

com.accenture.testing.bdd.parameters.VariableTransform Maven / Gradle / Ivy

Go to download

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