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.
|
Method Summary |
void |
assignCodeToEvent(java.lang.String eventKey,
ANSIConsoleOutput.SGRCode code)
|
protected java.lang.String |
format(java.lang.String eventKey,
java.lang.String defaultPattern,
java.lang.Object... args)
Formats event output by key, usually equal to the method name. |
| Methods inherited from class org.jbehave.core.reporters.PrintStreamOutput |
afterExamples, afterScenario, afterStory, beforeExamples, beforeScenario, beforeStep, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ANSIConsoleOutput
public ANSIConsoleOutput()
ANSIConsoleOutput
public ANSIConsoleOutput(Keywords keywords)
ANSIConsoleOutput
public ANSIConsoleOutput(java.util.Properties outputPatterns,
Keywords keywords,
boolean reportFailureTrace)
format
protected java.lang.String format(java.lang.String eventKey,
java.lang.String defaultPattern,
java.lang.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(java.lang.String eventKey,
ANSIConsoleOutput.SGRCode code)
Copyright © 2003-2012. All Rights Reserved.