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.

There is a newer version: 2.0.2-RC4
Show newest version
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