Package org.jbehave.core.reporters
Class Format
- java.lang.Object
-
- org.jbehave.core.reporters.Format
-
- Direct Known Subclasses:
ContextOutput,StoryReporterBuilder.ProvidedFormat
public abstract class Format extends Object
A Format is aStoryReporterfactory, allowing named-based pre-defined story reporters to be configured via theStoryReporterBuilder.withFormats(Format...)method. Users wanting to configure their custom defined story reporters, can do so via theStoryReporterBuilder.withReporters(StoryReporter...)method, or use theStoryReporterBuilder.ProvidedFormatwrapper.
-
-
Field Summary
Fields Modifier and Type Field Description static FormatANSI_CONSOLEstatic FormatCONSOLEstatic FormatHTMLstatic FormatHTML_TEMPLATEstatic FormatIDE_CONSOLEstatic FormatJSONstatic FormatJSON_TEMPLATEstatic FormatSTATSSTATS is needed by the final reports.html summary page.static FormatTEAMCITY_CONSOLEstatic FormatTXTstatic FormatXMLstatic FormatXML_TEMPLATE
-
Method Summary
Modifier and Type Method Description abstract StoryReportercreateStoryReporter(FilePrintStreamFactory factory, StoryReporterBuilder storyReporterBuilder)Stringname()static voidprintln(PrintStream writer, String format, Object... args)StringtoString()
-
-
-
Field Detail
-
CONSOLE
public static final Format CONSOLE
-
ANSI_CONSOLE
public static final Format ANSI_CONSOLE
-
IDE_CONSOLE
public static final Format IDE_CONSOLE
-
TEAMCITY_CONSOLE
public static final Format TEAMCITY_CONSOLE
-
TXT
public static final Format TXT
-
HTML
public static final Format HTML
-
XML
public static final Format XML
-
JSON
public static final Format JSON
-
HTML_TEMPLATE
public static final Format HTML_TEMPLATE
-
XML_TEMPLATE
public static final Format XML_TEMPLATE
-
JSON_TEMPLATE
public static final Format JSON_TEMPLATE
-
STATS
public static final Format STATS
STATS is needed by the final reports.html summary page.
-
-
Constructor Detail
-
Format
public Format(String name)
-
-
Method Detail
-
name
public String name()
-
createStoryReporter
public abstract StoryReporter createStoryReporter(FilePrintStreamFactory factory, StoryReporterBuilder storyReporterBuilder)
-
println
public static void println(PrintStream writer, String format, Object... args)
-
-