website.automate.waml.report.io.WamlReportReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waml-report-io Show documentation
Show all versions of waml-report-io Show documentation
(De)Serializer of the web automation markup language (WAML) reports for Java
package website.automate.waml.report.io;
import java.io.InputStream;
import website.automate.waml.report.io.model.WamlReport;
import com.fasterxml.jackson.databind.ObjectMapper;
public class WamlReportReader {
private ObjectMapper objectMapper = WamlReportConfig.getInstance().getMapper();
public WamlReport read(InputStream reportStream){
try {
return objectMapper.readValue(reportStream, WamlReport.class);
} catch (Exception e) {
throw new WamlReportDeserializationException("Waml report could not be deserialized.", e);
}
}
}