Package org.jbehave.core.model

Examples of org.jbehave.core.model.StoryMap


            stories.put(storyPath, story);
            when(runner.storyOfPath(configuration, storyPath)).thenReturn(story);
        }

        // When
        List<StoryMap> maps = asList(new StoryMap("filter", new HashSet<Story>(stories.values())));
        StoryMaps storyMaps = new StoryMaps(maps);
        when(mapper.getStoryMaps()).thenReturn(storyMaps);
        embedder.mapStoriesAsPaths(storyPaths);

        // Then
View Full Code Here


        mapper.map(story2, filter);

        // Then
        StoryMaps storyMaps = mapper.getStoryMaps();
        assertThat(storyMaps.getMaps().size(), equalTo(1));
        StoryMap storyMap = storyMaps.getMap(filterAsString);
        assertThat(storyMap.getMetaFilter(), equalTo(filterAsString));
        assertThat(storyMap.getStories().get(0).getPath(), equalTo(story2.getPath()));
        assertThat(storyMap.getStoryPaths(), equalTo(asList(story2.getPath())));
    }
View Full Code Here

            }
        }
    }

    public StoryMap getStoryMap(String filter) {
        return new StoryMap(filter, storiesFor(filter));
    }
View Full Code Here

TOP

Related Classes of org.jbehave.core.model.StoryMap

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.