ContextOutput.java

  1. package org.jbehave.core.reporters;

  2. import org.jbehave.core.context.Context;

  3. public class ContextOutput extends Format {
  4.     private final Context context;

  5.     public ContextOutput(Context context) {
  6.         super("CONTEXT");
  7.         this.context = context;
  8.     }

  9.     @Override
  10.     public StoryReporter createStoryReporter(
  11.             FilePrintStreamFactory filePrintStreamFactory,
  12.             StoryReporterBuilder storyReporterBuilder) {
  13.         return new ContextStoryReporter(context);
  14.     }
  15. }