
website.automate.waml.report.io.WamlReportWriter 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.OutputStream;
import website.automate.waml.report.io.model.WamlReport;
import com.fasterxml.jackson.databind.ObjectMapper;
public class WamlReportWriter {
private ObjectMapper objectMapper = WamlReportConfig.getInstance().getMapper();
public void write(OutputStream scenarioStream, WamlReport report){
try {
objectMapper.writeValue(scenarioStream, report);
} catch (Exception e) {
throw new WamlReportSerializationException("Waml report could not be serialized.", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy