Package com.tngtech.jgiven.report.text
Class PlainTextScenarioWriter
- java.lang.Object
-
- com.tngtech.jgiven.report.model.ReportModelVisitor
-
- com.tngtech.jgiven.report.text.PlainTextWriter
-
- com.tngtech.jgiven.report.text.PlainTextScenarioWriter
-
- Direct Known Subclasses:
DataTablePlainTextScenarioWriter
public class PlainTextScenarioWriter extends PlainTextWriter
-
-
Field Summary
Fields Modifier and Type Field Description protected ScenarioCaseModel
currentCaseModel
protected ScenarioModel
currentScenarioModel
protected static java.lang.String
INDENT
static java.lang.String
NESTED_HEADING
static java.lang.String
NESTED_INDENT
-
Fields inherited from class com.tngtech.jgiven.report.text.PlainTextWriter
withColor, writer
-
-
Constructor Summary
Constructors Constructor Description PlainTextScenarioWriter(java.io.PrintWriter printWriter, boolean withColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescriptionOrDefault(ScenarioCaseModel scenarioCase)
protected void
printCaseLine(ScenarioCaseModel scenarioCase)
void
visit(ScenarioCaseModel scenarioCase)
void
visit(ScenarioModel scenarioModel)
void
visit(StepModel stepModel)
void
visitEnd(ScenarioCaseModel scenarioCase)
protected java.lang.String
wordToString(Word word)
-
Methods inherited from class com.tngtech.jgiven.report.model.ReportModelVisitor
visit, visitEnd, visitEnd
-
-
-
-
Field Detail
-
INDENT
protected static final java.lang.String INDENT
- See Also:
- Constant Field Values
-
NESTED_HEADING
public static final java.lang.String NESTED_HEADING
- See Also:
- Constant Field Values
-
NESTED_INDENT
public static final java.lang.String NESTED_INDENT
- See Also:
- Constant Field Values
-
currentScenarioModel
protected ScenarioModel currentScenarioModel
-
currentCaseModel
protected ScenarioCaseModel currentCaseModel
-
-
Method Detail
-
visit
public void visit(ScenarioModel scenarioModel)
- Overrides:
visit
in classReportModelVisitor
-
visitEnd
public void visitEnd(ScenarioCaseModel scenarioCase)
- Overrides:
visitEnd
in classReportModelVisitor
-
visit
public void visit(ScenarioCaseModel scenarioCase)
- Overrides:
visit
in classReportModelVisitor
-
printCaseLine
protected void printCaseLine(ScenarioCaseModel scenarioCase)
-
getDescriptionOrDefault
public java.lang.String getDescriptionOrDefault(ScenarioCaseModel scenarioCase)
-
visit
public void visit(StepModel stepModel)
- Overrides:
visit
in classReportModelVisitor
-
wordToString
protected java.lang.String wordToString(Word word)
-
-