Package org.jbehave.core.embedder

Examples of org.jbehave.core.embedder.Embedder.mapStoriesAsPaths()


    @Test
    public void mapStories() {
        Embedder embedder = new Embedder();
        embedder.useMetaFilters(asList("+author *", "+theme *", "-skip"));
        List<String> storyPaths = new StoryFinder().findPaths(codeLocationFromClass(this.getClass()), "**/*.story", "");
        embedder.mapStoriesAsPaths(storyPaths);
    }

    @Test
    public void runClasspathLoadedStoriesAsJUnit() {
        // CoreEmbedder defines the configuration and steps factory
View Full Code Here


public class MapStoriesAsPaths extends AbstractEmbedderTask {
   
    public void execute() throws BuildException {
        Embedder embedder = newEmbedder();
        log("Mapping stories as paths using embedder "+embedder, MSG_INFO);
    embedder.mapStoriesAsPaths(storyPaths());
    }

}
View Full Code Here

    public void execute() throws MojoExecutionException, MojoFailureException {
        Embedder embedder = newEmbedder();
        getLog().info("Mapping stories as paths using embedder " + embedder);
        try {
            embedder.mapStoriesAsPaths(storyPaths());
        } catch (RuntimeException e) {
            throw new MojoFailureException("Failed to map stories as paths", e);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.