Package org.jbehave.core.io

Examples of org.jbehave.core.io.StoryFinder


public class ParsingTest {

    @Test
    public void run() throws Throwable {
        Embedder embedder = new ParsingEmbedder();
        List<String> storyPaths = new StoryFinder().findPaths(codeLocationFromClass(this.getClass()), "**/bdd/parsing*.story", "");
        embedder.runStoriesAsPaths(storyPaths);
    }
View Full Code Here


public class VisitorTest {

    @Test
    public void run() throws Throwable {
        Embedder embedder = new VisitorEmbedder();
        List<String> storyPaths = new StoryFinder().findPaths(codeLocationFromClass(this.getClass()), "**/bdd/visitor*.story", "");
        embedder.runStoriesAsPaths(storyPaths);
    }
View Full Code Here

    @Test
    public void run() throws Throwable {
        // Embedder defines the configuration and candidate steps
        Embedder embedder = new CommentParsingEmbedder();
        List<String> storyPaths = new StoryFinder().findPaths(codeLocationFromClass(this.getClass()), "**/bdd/comment*.story", "");
        embedder.runStoriesAsPaths(storyPaths);
    }
View Full Code Here

    }
  }
 
  @Override
  protected List<String> storyPaths() {
    return new StoryFinder().findPaths(
        codeLocationFromClass(this.getClass()),
        "**/Run*.story", "");
  }
View Full Code Here

            doSkipScenariosAfterFailure(false).doResetStateBeforeStory(false).doResetStateBeforeScenario(true));
  }

  protected List<String> storyPaths() {
   
    return new StoryFinder().findPaths(
        codeLocationFromClass(this.getClass()),
        "**/Run*.story", "");
  }
View Full Code Here

TOP

Related Classes of org.jbehave.core.io.StoryFinder

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.