Package org.jbehave.core.configuration

Examples of org.jbehave.core.configuration.Keywords


public class PlayersCanHazTurns extends NoughtsAndCrossesStory {
    public PlayersCanHazTurns() {       
        ClassLoader classLoader = this.getClass().getClassLoader();
        URL codeLocation = CodeLocations.codeLocationFromClass(this.getClass());
        Keywords keywords = new LocalizedKeywords(new Locale("lc"),
                "i18n/keywords", classLoader);
        Configuration configuration = new MostUsefulConfiguration()
            .useKeywords(keywords)
            .useStoryParser(new RegexStoryParser(keywords))
            .useStoryPathResolver(new UnderscoredCamelCaseResolver(""))
View Full Code Here


    }

    @Test
    public void shouldNotMatchOrIgnoreStepWhenStartingWordNotFound() throws Exception {
        Method method = SomeSteps.class.getMethod("aMethod");
        Keywords keywords = new LocalizedKeywords(){           
           
            @Override
            public String startingWordFor(StepType stepType) {
                throw new StartingWordNotFound(stepType, new HashMap<StepType, String>());
            }
View Full Code Here

                new StoryReporterBuilder() {
                    public StoryReporter reporterFor(String storyPath, org.jbehave.core.reporters.Format format) {
                        if (format.equals(org.jbehave.core.reporters.Format.HTML)) {
//                            return new JiraStoryReporter(jiraUrl, jiraProject, "admin", "admin", environment);
//                            return new GroovyStoryReporter(jiraUrl, jiraProject, "admin", "admin", environment);
                            Keywords keywords = keywords();
                            return new JiraStoryReporter(new File("target", "story_report.xml"), keywords,
                                    jiraUrl, jiraProject, "admin", "admin", environment);
                        } else {
                            return super.reporterFor(storyPath, format);
                        }
View Full Code Here

TOP

Related Classes of org.jbehave.core.configuration.Keywords

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.