blob: 313a827ebbd9167d69c24e12853d9e9b4b4a211e [file] [log] [blame]
package org.testng.internal;
import org.testng.TestNGException;
import org.testng.xml.IFileParser;
import org.testng.xml.XmlSuite;
import java.io.FileNotFoundException;
import java.io.InputStream;
public class YamlParser implements IFileParser<XmlSuite> {
@Override
public XmlSuite parse(String filePath, InputStream is, boolean loadClasses)
throws TestNGException {
try {
return Yaml.parse(filePath, is);
} catch (FileNotFoundException e) {
throw new TestNGException(e);
}
}
}