public List<String> findResources() { return new StoryFinder().findPaths(codeLocation, include, exclude); }
protected List<String> storyPaths() { return new StoryFinder().findPaths(codeLocationFromClass(this.getClass()).getFile(), asList("**/" + System.getProperty("storyFilter", "*") + ".story"), null); } }
@Override protected List<String> storyPaths() { return new StoryFinder().findPaths(codeLocationFromClass(this.getClass()).getFile(), asList("**/" + System.getProperty("storyFilter", "*") + ".story"), null); }
@Override protected List<String> storyPaths() { return new StoryFinder().findPaths( codeLocationFromClass(this.getClass()), "**/*.story", "**/failing_before*.story"); }
@Override protected List<String> storyPaths() { return new StoryFinder().findPaths(codeLocationFromClass(this.getClass()), "**/*.story", "**/failing_before*.story"); }
@Override protected List<String> storyPaths() { return new StoryFinder().findPaths(codeLocationFromClass(this.getClass()), "**/stories/*.story", ""); }
/** * Retrieves the location of the stories. */ protected List<String> storyPaths() { return new StoryFinder().findPaths(getStoryLocation(), "**/*.story", ""); }
@Override public List<String> storyPaths() { return new StoryFinder().findPaths(getStoryLocation(), JBehaveConstants.STORY_PATTERN, JBehaveConstants.NO_EXCLUDE); }
public List<String> storyPaths() { Set<String> storyPaths = Sets.newHashSet(); List<String> pathExpressions = getStoryPathExpressions(); StoryFinder storyFinder = new StoryFinder(); for(String pathExpression : pathExpressions) { if (absolutePath(pathExpression)) { storyPaths.add(pathExpression); } for(URL classpathRootUrl : allClasspathRoots()) { storyPaths.addAll(storyFinder.findPaths(classpathRootUrl, pathExpression, "")); } storyPaths = pruneGivenStoriesFrom(storyPaths); } return Lists.newArrayList(storyPaths); }
protected Map<String, Resource> createIndexFromPaths(String rootURI, String rootPath, String syntax, String includes) { Map<String, Resource> index = new HashMap<>(); List<String> paths = new StoryFinder().findPaths( codeLocationFromPath(rootPath), includes, EMPTY); for (String path : paths) { addPath(rootURI, rootPath, fullPath(rootPath, path), syntax, index); } return index; }
@Override public List<String> storyPaths() { Set<String> storyPaths = new HashSet<>(); List<String> pathExpressions = getStoryPathExpressions(); StoryFinder storyFinder = new StoryFinder(); for (String pathExpression : pathExpressions) { if (absolutePath(pathExpression)) { storyPaths.add(pathExpression); } for (URL classpathRootUrl : allClasspathRoots()) { storyPaths.addAll(storyFinder.findPaths(classpathRootUrl, pathExpression, "")); } storyPaths = removeDuplicatesFrom(storyPaths); storyPaths = pruneGivenStoriesFrom(storyPaths); } return sorted(storyPaths); }