Package org.jbehave.core.story

Examples of org.jbehave.core.story.StoryLoader


    private StoryParser storyParser = new TextStoryParser();

    public void execute() throws MojoExecutionException, MojoFailureException {
        try {
            getLog().debug("Printing story "+ storyPath);
            StoryLoader loader = new StoryLoader(storyParser, new BehavioursClassLoader(classpathElements));
            StoryPrinter storyPrinter = new StoryPrinter(loader, new PlainTextRenderer(System.out));           
            storyPrinter.print(storyPath, storyPackage);
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to print story "+storyPath+" with package "+storyPackage, e);
        }
View Full Code Here


    private StoryRunner storyRunner = new StoryRunner();
   
    public void execute() throws MojoExecutionException, MojoFailureException {
        try {
            getLog().debug("Running story "+ storyPath);
            StoryLoader loader = new StoryLoader(storyParser, new BehavioursClassLoader(classpathElements));
            Story story = loader.loadStory(storyPath, storyPackage);           
            storyRunner.run(story);
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to run story "+storyPath+" with package "+storyPackage, e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jbehave.core.story.StoryLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.