1 | |
package org.jbehave.core.reporters; |
2 | |
|
3 | |
import org.jbehave.core.context.Context; |
4 | |
|
5 | |
public class ContextOutput extends org.jbehave.core.reporters.Format { |
6 | |
private final Context context; |
7 | |
|
8 | |
public ContextOutput(Context context) { |
9 | 0 | super("CONTEXT"); |
10 | 0 | this.context = context; |
11 | 0 | } |
12 | |
|
13 | |
@Override |
14 | |
public StoryReporter createStoryReporter( |
15 | |
FilePrintStreamFactory filePrintStreamFactory, |
16 | |
StoryReporterBuilder storyReporterBuilder) { |
17 | 0 | return new ContextStoryReporter(context); |
18 | |
} |
19 | |
} |