org.jbehave.core.reporters
Class CrossReference
java.lang.Object
org.jbehave.core.reporters.Format
org.jbehave.core.reporters.CrossReference
public class CrossReference
- extends Format
Methods inherited from class org.jbehave.core.reporters.Format |
name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrossReference
public CrossReference()
CrossReference
public CrossReference(String name)
withJsonOnly
public CrossReference withJsonOnly()
withXmlOnly
public CrossReference withXmlOnly()
withOutputAfterEachStory
public CrossReference withOutputAfterEachStory(boolean outputAfterEachStory)
withThreadSafeDelegateFormat
public CrossReference withThreadSafeDelegateFormat(Format format)
excludingStoriesWithNoExecutedScenarios
public CrossReference excludingStoriesWithNoExecutedScenarios(boolean exclude)
getStepMonitor
public StepMonitor getStepMonitor()
outputToFiles
public void outputToFiles(StoryReporterBuilder storyReporterBuilder)
- Output to JSON and/or XML files. Could be at the end of the suite, or per story
In the case of the latter, synchronization is needed as two stories (on two threads) could
be completing concurrently, and we need to guard against ConcurrentModificationException
- Parameters:
storyReporterBuilder
- the reporter to use
fileName
protected String fileName(String extension)
createXRefRoot
protected final CrossReference.XRefRoot createXRefRoot(StoryReporterBuilder storyReporterBuilder,
List<org.jbehave.core.reporters.CrossReference.StoryHolder> stories,
Set<String> failingStories)
newXRefRoot
protected CrossReference.XRefRoot newXRefRoot()
makeWriter
protected Writer makeWriter(File file)
throws IOException
- Throws:
IOException
aliasForXRefStory
protected void aliasForXRefStory(com.thoughtworks.xstream.XStream xstream)
aliasForXRefRoot
protected void aliasForXRefRoot(com.thoughtworks.xstream.XStream xstream)
createStoryReporter
public StoryReporter createStoryReporter(FilePrintStreamFactory factory,
StoryReporterBuilder storyReporterBuilder)
- Specified by:
createStoryReporter
in class Format
Copyright © 2003-2011. All Rights Reserved.