io.github.simple4tests.webdriver.utils.Yml Maven / Gradle / Ivy
package io.github.simple4tests.webdriver.utils;
import org.yaml.snakeyaml.Yaml;
public class Yml {
public static T loadAs(String ressourceFilePath, Class type) {
return new Yaml().loadAs(
Thread.currentThread().getContextClassLoader().getResourceAsStream(ressourceFilePath),
type);
}
}