Skip to content

Instantly share code, notes, and snippets.

@maggandalf
Created January 19, 2014 18:31
Show Gist options
  • Save maggandalf/8508942 to your computer and use it in GitHub Desktop.
Save maggandalf/8508942 to your computer and use it in GitHub Desktop.
import static org.jbehave.asciidoctor.reporter.AsciidoctorStoryReporter.ASCIIDOC;
//....
public class CalculatorMultStories extends JUnitStory {
@Override
public Configuration configuration() {
return super.configuration().useStoryReporterBuilder(
new StoryReporterBuilder().withDefaultFormats().withFormats(
ASCIIDOC, HTML));
}
// Here we specify the steps classes
@Override
public InjectableStepsFactory stepsFactory() {
return new InstanceStepsFactory(configuration(),
new MultiplyTwoNumbersSteps(), new AddTwoNumbersSteps());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment