Package net.serenitybdd.core.reports
Class ReportDataSaver
- java.lang.Object
-
- net.serenitybdd.core.reports.ReportDataSaver
-
- All Implemented Interfaces:
AndContent
,FromFile
,WithTitle
public class ReportDataSaver extends Object implements WithTitle, AndContent, FromFile
-
-
Constructor Summary
Constructors Constructor Description ReportDataSaver(StepEventBus eventBus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
andContents(String contents)
WithTitle
asEvidence()
FromFile
downloadable()
void
fromFile(Path source)
void
fromFile(Path source, Charset encoding)
AndContent
withTitle(String title)
-
-
-
Constructor Detail
-
ReportDataSaver
public ReportDataSaver(StepEventBus eventBus)
-
-
Method Detail
-
withTitle
public AndContent withTitle(String title)
-
andContents
public void andContents(String contents)
- Specified by:
andContents
in interfaceAndContent
-
fromFile
public void fromFile(Path source) throws IOException
- Specified by:
fromFile
in interfaceFromFile
- Throws:
IOException
-
fromFile
public void fromFile(Path source, Charset encoding) throws IOException
- Specified by:
fromFile
in interfaceFromFile
- Throws:
IOException
-
downloadable
public FromFile downloadable()
- Specified by:
downloadable
in interfaceFromFile
-
asEvidence
public WithTitle asEvidence()
- Specified by:
asEvidence
in interfaceWithTitle
-
-