Package com.tngtech.jgiven.report.text
Class PlainTextReporter
- java.lang.Object
-
- com.tngtech.jgiven.report.model.ReportModelVisitor
-
- com.tngtech.jgiven.report.text.PlainTextWriter
-
- com.tngtech.jgiven.report.text.PlainTextReporter
-
public class PlainTextReporter extends PlainTextWriter
Generates a plain text report to a PrintStream.
-
-
Field Summary
-
Fields inherited from class com.tngtech.jgiven.report.text.PlainTextWriter
withColor, writer
-
-
Constructor Summary
Constructors Constructor Description PlainTextReporter()
PlainTextReporter(ConfigValue colorConfig)
PlainTextReporter(java.io.PrintWriter printWriter, ConfigValue colorConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
static java.lang.String
toString(ReportModel model)
static java.lang.String
toString(ScenarioModel scenarioModel)
void
visit(ReportModel multiScenarioModel)
void
visit(ScenarioModel scenarioModel)
PlainTextReporter
write(ReportModel model)
-
-
-
Constructor Detail
-
PlainTextReporter
public PlainTextReporter()
-
PlainTextReporter
public PlainTextReporter(ConfigValue colorConfig)
-
PlainTextReporter
public PlainTextReporter(java.io.PrintWriter printWriter, ConfigValue colorConfig)
-
-
Method Detail
-
toString
public static java.lang.String toString(ScenarioModel scenarioModel) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
toString
public static java.lang.String toString(ReportModel model) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
write
public PlainTextReporter write(ReportModel model)
-
visit
public void visit(ReportModel multiScenarioModel)
- Overrides:
visit
in classReportModelVisitor
-
visit
public void visit(ScenarioModel scenarioModel)
- Overrides:
visit
in classReportModelVisitor
-
flush
public void flush()
-
-