Package org.jbehave.core.steps.spring

Examples of org.jbehave.core.steps.spring.SpringApplicationContextFactory


    protected ApplicationContext createApplicationContext(ClassLoader classLoader, List<String> resources) {
        if (context != null) {
            return context;
        }
        return new SpringApplicationContextFactory(classLoader, resources.toArray(new String[resources.size()]))
                .createApplicationContext();
    }
View Full Code Here


* Using Spring's annotation configuration
*/
public class CoreStoriesUsingSpringWithAnnotationConfiguration extends CoreStoriesUsingSpring {

    protected ApplicationContext createContext() {
        return new SpringApplicationContextFactory("org.jbehave.examples.core.spring.SpringAnnotationConfiguration")
                .createApplicationContext();
    }
View Full Code Here

    public InjectableStepsFactory stepsFactory() {
        return new SpringStepsFactory(configuration(), createContext());
    }

    protected ApplicationContext createContext() {
        return new SpringApplicationContextFactory("org/jbehave/examples/core/spring/steps.xml")
                .createApplicationContext();
    }
View Full Code Here

    }

    @Override
    public InjectableStepsFactory stepsFactory() {
        String path = "${package}".replaceAll("\\.", "/");
        ApplicationContext context = new SpringApplicationContextFactory(path+"/my_steps.xml").createApplicationContext();
        return new SpringStepsFactory(configuration(), context);
    }
View Full Code Here

        return new SpringStepsFactory(configuration(), context());
    }

    private ApplicationContext context() {
        if (context == null) {
            context = new SpringApplicationContextFactory("steps.xml").createApplicationContext();
        }
        return context;
    }
View Full Code Here

    protected InjectableStepsFactory createStepsFactory() {
        return new SpringStepsFactory(configuration(), createContext());
    }

    private ApplicationContext createContext() {
        return new SpringApplicationContextFactory(getSpringResources())
                .createApplicationContext();
    }
View Full Code Here

    protected InjectableStepsFactory createStepsFactory() {
        return new SpringStepsFactory(configuration(), createContext());
    }

    private ApplicationContext createContext() {
        return new SpringApplicationContextFactory(getSpringResources())
                .createApplicationContext();
    }
View Full Code Here

                .useStoryReporterBuilder(reporterBuilder);
    }

    @Override
    public InjectableStepsFactory stepsFactory() {
        ApplicationContext context = new SpringApplicationContextFactory("etsy-steps.xml").createApplicationContext();
        return new SpringStepsFactory(configuration(), context);
    }
View Full Code Here

    protected InjectableStepsFactory createStepsFactory() {
        return new SpringStepsFactory(configuration(), createContext());
    }

    private ApplicationContext createContext() {
        return new SpringApplicationContextFactory(getSpringResources())
        .createApplicationContext();
    }
View Full Code Here

        .useStoryControls(new StoryControls().doResetStateBeforeScenario(false)).useStepMonitor(stepMonitor)
        .useStoryLoader(new LoadFromClasspath(this.getClass()))
        .useStoryReporterBuilder(reporterBuilder);
    useConfiguration(configuration);

    ApplicationContext context = new SpringApplicationContextFactory("applicationContext-tests.xml").createApplicationContext();
    useStepsFactory(new SpringStepsFactory(configuration, context));
  }
View Full Code Here

TOP

Related Classes of org.jbehave.core.steps.spring.SpringApplicationContextFactory

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.