Package org.jbehave.core.steps

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


                .withFailureTraceCompression(true));
    }

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

          UsingSteps.class, Object.class, "instances");
      if (!stepsClasses.isEmpty()) {
        for (Class<Object> stepsClass : stepsClasses) {
          stepsInstances.add(instanceOf(Object.class, stepsClass));
        }
        factory = new InstanceStepsFactory(configuration,
            stepsInstances);
      }
      List<String> packages = finder.getAnnotatedValues(UsingSteps.class,
          String.class, "packages");
      if (!packages.isEmpty()) {
        String matchingNames = finder.getAnnotatedValue(UsingSteps.class,
            String.class, "matchingNames");
        String notMatchingNames = finder.getAnnotatedValue(UsingSteps.class,
            String.class, "notMatchingNames");
        factory = new ScanningStepsFactory(configuration,
            packages.toArray(new String[packages.size()]))
            .matchingNames(matchingNames).notMatchingNames(notMatchingNames);
      }
        } else {
            annotationMonitor.annotationNotFound(UsingSteps.class, annotatedClass);
        }

        if (factory == null) {
            factory = new InstanceStepsFactory(configuration);
        }
        return factory;
    }
View Full Code Here

                .withFailureTraceCompression(true));
    }

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

        .useParameterConverters(parameterConverters);
    }

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

                .findPaths(codeLocationFromClass(this.getClass()), "**/*.story", "");
    }

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

        return converters.toArray(new ParameterConverter[converters.size()]);
    }

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

            .useParameterConverters(parameterConverters);
    }

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

                                .withFailureTraceCompression(true));
    }

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

                                .withDefaultFormats().withFormats(CONSOLE, HTML));
    }

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

TOP

Related Classes of org.jbehave.core.steps.InstanceStepsFactory

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.