Package org.jbehave.core.model

Examples of org.jbehave.core.model.StoryMaps


        monitor.embeddableFailed(name, cause);
        monitor.embeddableNotConfigurable(name);
        List<String> names = asList("name1");
        monitor.embeddablesSkipped(names);
        File outputDirectory = new File("target");
        StoryMaps storyMaps = mock(StoryMaps.class);
        Properties viewProperties = mock(Properties.class);
        monitor.generatingMapsView(outputDirectory, storyMaps, viewProperties);
        Properties viewResources = mock(Properties.class);
        monitor.generatingNavigatorView(outputDirectory, viewResources);
        List<String> formats = asList("TXT");
View Full Code Here


            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
        for (String storyPath : storyPaths) {
View Full Code Here

        when(filter.asString()).thenReturn(filterAsString);
        mapper.map(story1, filter);
        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 StoryMaps getStoryMaps() {
        List<StoryMap> maps = new ArrayList<StoryMap>();
        for (String filter : map.keySet()) {
            maps.add(getStoryMap(filter));
        }
        return new StoryMaps(maps);
    }
View Full Code Here

TOP

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

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.