use of org.jbehave.core.configuration.AnnotationBuilder in project jbehave-core by jbehave.
the class GuiceAnnotationBuilderBehaviour method shouldBuildCandidateStepsFromAnnotationsUsingStepsAndGuiceAndConverters.
@Test
public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndGuiceAndConverters() {
AnnotationBuilder builderAnnotated = new GuiceAnnotationBuilder(AnnotatedUsingConfigureAndGuiceConverters.class);
Configuration configuration = builderAnnotated.buildConfiguration();
assertThatStepsInstancesAre(builderAnnotated.buildCandidateSteps(configuration), FooSteps.class);
}
use of org.jbehave.core.configuration.AnnotationBuilder in project jbehave-core by jbehave.
the class NeedleAnnotationBuilderBehaviour method shouldBuildDefaultConfigurationIfAnnotationOrAnnotatedValuesNotPresent.
@Test
public void shouldBuildDefaultConfigurationIfAnnotationOrAnnotatedValuesNotPresent() {
final AnnotationBuilder builderNotAnnotated = new NeedleAnnotationBuilder(NotAnnotated.class);
assertThatConfigurationIs(builderNotAnnotated.buildConfiguration(), new MostUsefulConfiguration());
final AnnotationBuilder builderAnnotatedWithoutModules = new NeedleAnnotationBuilder(AnnotatedWithoutInjectors.class);
assertThatConfigurationIs(builderAnnotatedWithoutModules.buildConfiguration(), new MostUsefulConfiguration());
}
use of org.jbehave.core.configuration.AnnotationBuilder in project jbehave-core by jbehave.
the class NeedleAnnotationBuilderBehaviour method shouldBuildCandidateStepsFromAnnotationsUsingStepsAndGuiceAndConverters.
@Test
public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndGuiceAndConverters() {
final AnnotationBuilder builderAnnotated = new NeedleAnnotationBuilder(AnnotatedUsingConfigureAndNeedleConverters.class);
final Configuration configuration = builderAnnotated.buildConfiguration();
assertThatStepsInstancesAre(builderAnnotated.buildCandidateSteps(configuration), FooSteps.class);
}
use of org.jbehave.core.configuration.AnnotationBuilder in project jbehave-core by jbehave.
the class NeedleAnnotationBuilderBehaviour method shouldBuildEmptyStepsListIfAnnotationOrAnnotatedValuesNotPresent.
@Test
public void shouldBuildEmptyStepsListIfAnnotationOrAnnotatedValuesNotPresent() {
final AnnotationBuilder builderNotAnnotated = new NeedleAnnotationBuilder(NotAnnotated.class);
assertThatStepsInstancesAre(builderNotAnnotated.buildCandidateSteps());
final AnnotationBuilder builderAnnotatedWithoutLocations = new NeedleAnnotationBuilder(AnnotatedWithoutInjectors.class);
assertThatStepsInstancesAre(builderAnnotatedWithoutLocations.buildCandidateSteps());
}
use of org.jbehave.core.configuration.AnnotationBuilder in project jbehave-core by jbehave.
the class NeedleAnnotationBuilderBehaviour method shouldBuildStepsList.
@Test
public void shouldBuildStepsList() {
final AnnotationBuilder builderAnnotated = new NeedleAnnotationBuilder(AnnotatedMultipleSteps.class);
final List<CandidateSteps> actual = builderAnnotated.buildCandidateSteps();
assertThatStepsInstancesAre(actual, FooStepsWithDependency.class, FooSteps.class);
}
Aggregations