Class ReportDataSaver

java.lang.Object
net.serenitybdd.core.reports.ReportDataSaver
All Implemented Interfaces:
AndContent, FromFile, WithTitle

public class ReportDataSaver
extends java.lang.Object
implements WithTitle, AndContent, FromFile
  • Constructor Summary

    Constructors
    Constructor Description
    ReportDataSaver​(StepEventBus eventBus)  
  • Method Summary

    Modifier and Type Method Description
    void andContents​(java.lang.String contents)  
    WithTitle asEvidence()  
    FromFile downloadable()  
    void fromFile​(java.nio.file.Path source)  
    void fromFile​(java.nio.file.Path source, java.nio.charset.Charset encoding)  
    AndContent withTitle​(java.lang.String title)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReportDataSaver

      public ReportDataSaver​(StepEventBus eventBus)
  • Method Details

    • withTitle

      public AndContent withTitle​(java.lang.String title)
      Specified by:
      withTitle in interface WithTitle
    • andContents

      public void andContents​(java.lang.String contents)
      Specified by:
      andContents in interface AndContent
    • fromFile

      public void fromFile​(java.nio.file.Path source) throws java.io.IOException
      Specified by:
      fromFile in interface FromFile
      Throws:
      java.io.IOException
    • fromFile

      public void fromFile​(java.nio.file.Path source, java.nio.charset.Charset encoding) throws java.io.IOException
      Specified by:
      fromFile in interface FromFile
      Throws:
      java.io.IOException
    • downloadable

      public FromFile downloadable()
      Specified by:
      downloadable in interface FromFile
    • asEvidence

      public WithTitle asEvidence()
      Specified by:
      asEvidence in interface WithTitle