Examples of buildCandidateSteps()


Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

  public void shouldBuildCandidateStepsFromAnnotationsUsingNeedle() {
    final AnnotationBuilder builderAnnotated = new NeedleAnnotationBuilder(
        AnnotatedUsingNeedle.class);
    final Configuration configuration = builderAnnotated
        .buildConfiguration();
    assertTrue(builderAnnotated.buildCandidateSteps(configuration)
        .isEmpty());
  }

  @Test
  public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndNeedle() {
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

    final AnnotationBuilder builderAnnotated = new NeedleAnnotationBuilder(
        AnnotatedUsingStepsAndNeedle.class);
    final Configuration configuration = builderAnnotated
        .buildConfiguration();
    assertThatStepsInstancesAre(
        builderAnnotated.buildCandidateSteps(configuration),
        FooSteps.class);
  }

  @Test
  public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndGuiceAndConverters() {
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

    final AnnotationBuilder builderAnnotated = new NeedleAnnotationBuilder(
        AnnotatedUsingConfigureAndNeedleConverters.class);
    final Configuration configuration = builderAnnotated
        .buildConfiguration();
    assertThatStepsInstancesAre(
        builderAnnotated.buildCandidateSteps(configuration),
        FooSteps.class);
  }

  @Test
  public void shouldBuildEmptyStepsListIfAnnotationOrAnnotatedValuesNotPresent() {
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

  @Test
  public void shouldBuildEmptyStepsListIfAnnotationOrAnnotatedValuesNotPresent() {
    final AnnotationBuilder builderNotAnnotated = new NeedleAnnotationBuilder(
        NotAnnotated.class);
    assertThatStepsInstancesAre(builderNotAnnotated.buildCandidateSteps());

    final AnnotationBuilder builderAnnotatedWithoutLocations = new NeedleAnnotationBuilder(
        AnnotatedWithoutInjectors.class);
    assertThatStepsInstancesAre(builderAnnotatedWithoutLocations
        .buildCandidateSteps());
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

        NotAnnotated.class);
    assertThatStepsInstancesAre(builderNotAnnotated.buildCandidateSteps());

    final AnnotationBuilder builderAnnotatedWithoutLocations = new NeedleAnnotationBuilder(
        AnnotatedWithoutInjectors.class);
    assertThatStepsInstancesAre(builderAnnotatedWithoutLocations
        .buildCandidateSteps());
  }

  @Test
  public void shouldBuildStepsList() {
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

  @Test
  public void shouldBuildStepsList() {
    final AnnotationBuilder builderAnnotated = new NeedleAnnotationBuilder(
        AnnotatedMultipleSteps.class);
    final List<CandidateSteps> actual = builderAnnotated
        .buildCandidateSteps();
    assertThatStepsInstancesAre(actual, FooStepsWithDependency.class,
        FooSteps.class);
  }
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

  public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndInheritingPicoFromParent() {
    AnnotationBuilder builderAnnotated = new SpringAnnotationBuilder(
        InheritingAnnotatedUsingSteps.class);
    Configuration configuration = builderAnnotated.buildConfiguration();
    assertThatStepsInstancesAre(
        builderAnnotated.buildCandidateSteps(configuration),
        FooSteps.class);
  }

  @Test
  public void shouldBuildEmptyStepsListIfAnnotationOrAnnotatedValuesNotPresent() {
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

  public void shouldNotBuildContainerIfResourceNotLoadable() {
    AnnotationMonitor annotationMonitor = mock(AnnotationMonitor.class);
    AnnotationBuilder builderUnloadableResource = new SpringAnnotationBuilder(
        AnnotatedWithUnloadableResource.class, annotationMonitor);
    try {
      assertThatStepsInstancesAre(builderUnloadableResource
          .buildCandidateSteps());
      fail("Exception expected");
    } catch (AnnotationBuilder.InstantiationFailed e) {
      // expected
    }
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

    @Test
    public void shouldBuildCandidateStepsFromAnnotationsUsingGuice() {
        AnnotationBuilder builderAnnotated = new GuiceAnnotationBuilder(AnnotatedUsingGuice.class);
        Configuration configuration = builderAnnotated.buildConfiguration();
        assertThatStepsInstancesAre(builderAnnotated.buildCandidateSteps(configuration), FooSteps.class,
                FooStepsWithDependency.class);
    }

    @Test
    public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndGuice() {
View Full Code Here

Examples of org.jbehave.core.configuration.AnnotationBuilder.buildCandidateSteps()

    @Test
    public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndGuice() {
        AnnotationBuilder builderAnnotated = new GuiceAnnotationBuilder(AnnotatedUsingStepsAndGuice.class);
        Configuration configuration = builderAnnotated.buildConfiguration();
        assertThatStepsInstancesAre(builderAnnotated.buildCandidateSteps(configuration), FooSteps.class);
    }

    @Test
    public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndInheritingGuiceFromParent() {
        AnnotationBuilder builderAnnotated = new GuiceAnnotationBuilder(InheritingAnnotatedUsingSteps.class);
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.