Package org.jbehave.core.io

Examples of org.jbehave.core.io.LoadFromRelativeFile$StoryFilePath


        .withFailureTrace(Config.displayStackTrace());

    // Setup parameters
    ParameterConverters parameterConverters = new ParameterConverters()
        .addConverters(new ExamplesTableConverter(
            new ExamplesTableFactory(new LoadFromRelativeFile(
                codeLocation))));
    // factory to allow parameter conversion and loading from external
    // resources (used by StoryParser too)
    ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(
        new LocalizedKeywords(),
        new LoadFromRelativeFile(codeLocation), parameterConverters);
    // add custom coverters
    parameterConverters.addConverters(new ExamplesTableConverter(
        examplesTableFactory));
    viewResources.put("decorateNonHtml", "true");
    useStoryControls(
        new StoryControls().doDryRun(false)
            .doSkipScenariosAfterFailure(false)
            .doResetStateBeforeStory(true)
            .useStoryMetaPrefix("story_")
            .useScenarioMetaPrefix("scenario_"))
        .useStoryLoader(new LoadFromRelativeFile(codeLocation))
        .useStoryReporterBuilder(srb)
        .useStoryPathResolver(storyPathResolver)
        .useStepMonitor(new SilentStepMonitor())
        .useStoryParser(new RegexStoryParser(examplesTableFactory))
        .useParameterConverters(parameterConverters);
View Full Code Here

TOP

Related Classes of org.jbehave.core.io.LoadFromRelativeFile$StoryFilePath

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.