Examples of InstanceStepsFactory


Examples of org.jbehave.core.steps.InstanceStepsFactory

    }

    @Override
    public List<CandidateSteps> candidateSteps() {
        List<CandidateSteps> candidateSteps = new ArrayList<CandidateSteps>();
        candidateSteps.addAll(new InstanceStepsFactory(configuration(), this).createCandidateSteps());
        return candidateSteps;
    }
View Full Code Here

Examples of org.jbehave.core.steps.InstanceStepsFactory

      .useStepMonitor(new SilentStepMonitor());               
  }

    @Override
    public InjectableStepsFactory stepsFactory() {
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new BeforeAfterSteps());
    }
View Full Code Here

Examples of org.jbehave.core.steps.InstanceStepsFactory

public abstract class FailingBeforeAfterCoreStory extends CoreStory {

    @Override
    public InjectableStepsFactory stepsFactory() {
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(), new MetaParametrisationSteps(),
                new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(), new SandpitSteps(),
                new SearchSteps(), new BeforeAfterSteps(), new CompositeSteps(), new FailingBeforeAfterSteps());
    }
View Full Code Here

Examples of org.jbehave.core.steps.InstanceStepsFactory

  }

    @Override
    public InjectableStepsFactory stepsFactory() {
      MyContext context = new MyContext();
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(),
                new MetaParametrisationSteps(), new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(),
                new SandpitSteps(), new SearchSteps(), new BeforeAfterSteps(), new CompositeSteps(),
                new NamedParametersSteps(), new ExamplesTableParametersSteps(), new TableSteps(), new ContextSteps(context));
    }
View Full Code Here

Examples of org.jbehave.core.steps.InstanceStepsFactory

public class FailingBeforeAfterCoreStories extends CoreStories {

    @Override
    public InjectableStepsFactory stepsFactory() {
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(), new MetaParametrisationSteps(),
                new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(), new SandpitSteps(),
                new SearchSteps(), new BeforeAfterSteps(), new CompositeSteps(), new FailingBeforeAfterSteps());
    }
View Full Code Here

Examples of org.jbehave.core.steps.InstanceStepsFactory

    }

    @Override
    public InjectableStepsFactory stepsFactory() {
      MyContext context = new MyContext();
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(),
                new MetaParametrisationSteps(), new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(),
                new ParametrisedSteps(), new SandpitSteps(), new SearchSteps(), new BeforeAfterSteps(),
                new CompositeSteps(), new CompositeNestedSteps(), new NamedParametersSteps(),
                new ParameterDelimitersSteps(), new ExamplesTableParametersSteps(), new ContextSteps(context));
    }
View Full Code Here

Examples of org.jbehave.core.steps.InstanceStepsFactory

                    .useStoryReporterBuilder(new StoryReporterBuilder().withFormats(CONSOLE, HTML, XML));
        }

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

Examples of org.jbehave.core.steps.InstanceStepsFactory

                    }.withFormats(Format.XML));
        }

        @Override
        public InjectableStepsFactory stepsFactory() {
            return new InstanceStepsFactory(this.configuration(), this);
        }
View Full Code Here

Examples of org.jbehave.core.steps.InstanceStepsFactory

    // Here we specify the steps classes
    @Override
    public List<CandidateSteps> candidateSteps() {       
        // varargs, can have more that one steps classes
        return new InstanceStepsFactory(configuration(), new GridSteps()).createCandidateSteps();
    }
View Full Code Here

Examples of org.jbehave.core.steps.InstanceStepsFactory

                .useStepCollector(new MarkUnmatchedStepsAsPending(new StepFinder(new ByLevenshteinDistance())));

        Embedder embedder = new Embedder();
        embedder.useEmbedderControls(new EmbedderControls().doGenerateViewAfterStories(false));
        embedder.useConfiguration(configuration);
        embedder.useCandidateSteps(new InstanceStepsFactory(configuration, new MySteps()).createCandidateSteps());
        embedder.useMetaFilters(asList("-skip true"));

        try {
            embedder.runStoriesAsPaths(asList(storyPaths));
        } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.