Search in sources :

Example 1 with ValidationConfig

use of com.hedera.services.bdd.suites.utils.validation.domain.ValidationConfig in project hedera-services by hashgraph.

the class ValidationScenarios method readConfig.

private static void readConfig() {
    var yamlIn = new Yaml(new Constructor(ValidationConfig.class));
    try {
        System.out.println("Config loc: " + params.getConfigLoc());
        validationConfig = yamlIn.load(Files.newInputStream(Paths.get(params.getConfigLoc())));
    } catch (IOException e) {
        log.error("Could not locate '{}' exiting!", params.getConfigLoc(), e);
        System.exit(1);
    }
}
Also used : ValidationConfig(com.hedera.services.bdd.suites.utils.validation.domain.ValidationConfig) Constructor(org.yaml.snakeyaml.constructor.Constructor) IOException(java.io.IOException) Yaml(org.yaml.snakeyaml.Yaml)

Aggregations

ValidationConfig (com.hedera.services.bdd.suites.utils.validation.domain.ValidationConfig)1 IOException (java.io.IOException)1 Yaml (org.yaml.snakeyaml.Yaml)1 Constructor (org.yaml.snakeyaml.constructor.Constructor)1