org.jbehave.core.reporters
Class ANSIConsoleOutput
java.lang.Object
org.jbehave.core.reporters.PrintStreamOutput
org.jbehave.core.reporters.TxtOutput
org.jbehave.core.reporters.ConsoleOutput
org.jbehave.core.reporters.ANSIConsoleOutput
- All Implemented Interfaces:
- StoryReporter
public class ANSIConsoleOutput
- extends ConsoleOutput
Story reporter that outputs as ANSI-coded text to System.out.
Methods inherited from class org.jbehave.core.reporters.PrintStreamOutput |
afterExamples, afterScenario, afterStory, beforeExamples, beforeScenario, beforeStory, compressFailureTrace, doCompressFailureTrace, doReportFailureTrace, dryRun, escape, example, failed, failedOutcomes, formatTable, givenStories, givenStories, ignorable, lookupPattern, narrative, notPerformed, overwritePattern, pending, pendingMethods, print, reportFailureTrace, restarted, scenarioMeta, scenarioNotAllowed, storyCancelled, storyNotAllowed, successful, toString |
ANSIConsoleOutput
public ANSIConsoleOutput()
ANSIConsoleOutput
public ANSIConsoleOutput(Keywords keywords)
ANSIConsoleOutput
public ANSIConsoleOutput(Properties outputPatterns,
Keywords keywords,
boolean reportFailureTrace)
format
protected String format(String eventKey,
String defaultPattern,
Object... args)
- Description copied from class:
PrintStreamOutput
- Formats event output by key, usually equal to the method name.
- Overrides:
format
in class PrintStreamOutput
- Parameters:
eventKey
- the event keydefaultPattern
- the default pattern to return if a custom pattern
is not foundargs
- the args used to format output
- Returns:
- A formatted event output
assignCodeToEvent
public void assignCodeToEvent(String eventKey,
ANSIConsoleOutput.SGRCode code)
Copyright © 2003-2012. All Rights Reserved.