Package org.jbehave.core.steps.spring

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


    @Override
    public InjectableStepsFactory buildStepsFactory(Configuration configuration) {
        InjectableStepsFactory factoryUsingSteps = super.buildStepsFactory(configuration);
        if (context != null) {
            return new CompositeStepsFactory(new SpringStepsFactory(configuration, context), factoryUsingSteps);
        }
        return factoryUsingSteps;
    }
View Full Code Here


*/
public class CoreStoriesUsingSpring extends CoreStories {

    @Override
    public InjectableStepsFactory stepsFactory() {
        return new SpringStepsFactory(configuration(), createContext());
    }
View Full Code Here

    private Embedder embedder;

    @Before
    public void setup() {
        embedder = new CoreEmbedder();
        embedder.useCandidateSteps(new SpringStepsFactory(embedder.configuration(), context).createCandidateSteps());
    }
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

                .withFormats(CONSOLE, TXT, HTML, XML));
        return configuration;
    }

    public InjectableStepsFactory stepsFactory() {
        return new SpringStepsFactory(configuration(), context());
    }
View Full Code Here

public abstract class SpringJBehaveStories extends JBehaveStoriesBase {

    @Override
    protected InjectableStepsFactory createStepsFactory() {
        return new SpringStepsFactory(configuration(), createContext());
    }
View Full Code Here

public abstract class SpringJBehaveStories extends JBehaveStoriesBase {

    @Override
    protected InjectableStepsFactory createStepsFactory() {
        return new SpringStepsFactory(configuration(), createContext());
    }
View Full Code Here

    }

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

public abstract class SpringJBehaveStories extends JBehaveStoriesBase {

    @Override
    protected InjectableStepsFactory createStepsFactory() {
        return new SpringStepsFactory(configuration(), createContext());
    }
View Full Code Here

        .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.SpringStepsFactory

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.