public class JsonOutput extends PrintStreamOutput
Story reporter that outputs to a PrintStream, as JSON. It extends
PrintStreamOutput, providing JSON-based default output
patterns, which can be overridden via the (PrintStream,Properties) constructor.
PrintStreamOutput.FormatNL| Constructor and Description |
|---|
JsonOutput(PrintStream output,
Keywords keywords) |
JsonOutput(PrintStream output,
Properties outputPatterns,
Keywords keywords) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
format(String key,
String defaultPattern,
Object... args)
Formats event output by key, usually equal to the method name.
|
protected void |
print(PrintStream output,
String text) |
protected String |
transformPrintingTable(String text,
String tableStart,
String tableEnd) |
afterExamples, afterGivenStories, afterScenario, afterStory, afterStorySteps, beforeExamples, beforeGivenStories, beforeScenario, beforeStep, beforeStory, beforeStorySteps, comment, compressFailureTrace, doCompressFailureTrace, doReportFailureTrace, dryRun, escape, example, failed, failedOutcomes, formatTable, formatVerbatim, givenStories, givenStories, ignorable, lifecyle, lookupPattern, narrative, notPerformed, overwritePattern, pending, pendingMethods, print, reportFailureTrace, restarted, restartedStory, scenarioNotAllowed, storyCancelled, storyNotAllowed, successful, toString, transformPrintingVerbatimafterScenarioSteps, beforeScenario, beforeScenarioSteps, example, scenarioMetapublic JsonOutput(PrintStream output, Keywords keywords)
public JsonOutput(PrintStream output, Properties outputPatterns, Keywords keywords)
protected void print(PrintStream output, String text)
print in class PrintStreamOutputprotected String format(String key, String defaultPattern, Object... args)
PrintStreamOutputformat in class PrintStreamOutputkey - the event keydefaultPattern - the default pattern to return if a custom pattern
is not foundargs - the args used to format outputprotected String transformPrintingTable(String text, String tableStart, String tableEnd)
transformPrintingTable in class PrintStreamOutputCopyright © 2003–2019. All rights reserved.