use of org.jbehave.core.configuration.Configuration in project jbehave-core by jbehave.
the class PicoAnnotationBuilderBehaviour method shouldBuildCandidateStepsFromAnnotationsUsingPico.
@Test
public void shouldBuildCandidateStepsFromAnnotationsUsingPico() {
PicoAnnotationBuilder builderAnnotated = new PicoAnnotationBuilder(AnnotatedUsingPico.class);
Configuration configuration = builderAnnotated.buildConfiguration();
assertThatStepsInstancesAre(builderAnnotated.buildCandidateSteps(configuration), FooSteps.class, FooStepsWithDependency.class);
}
use of org.jbehave.core.configuration.Configuration in project jbehave-core by jbehave.
the class PicoAnnotationBuilderBehaviour method shouldBuildCandidateStepsFromAnnotationsUsingStepsAndInheritingPicoFromParent.
@Test
public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndInheritingPicoFromParent() {
AnnotationBuilder builderAnnotated = new PicoAnnotationBuilder(InheritingAnnotatedUsingSteps.class);
Configuration configuration = builderAnnotated.buildConfiguration();
assertThatStepsInstancesAre(builderAnnotated.buildCandidateSteps(configuration), FooSteps.class);
}
use of org.jbehave.core.configuration.Configuration in project jbehave-core by jbehave.
the class WeldAnnotationBuilderBehaviour method shouldBuildCandidateStepsFromAnnotationsUsingStepsAndWeldSteps.
@Test
public void shouldBuildCandidateStepsFromAnnotationsUsingStepsAndWeldSteps() {
AnnotationBuilder builderAnnotated = createBuilder(AnnotatedUsingWeldWithSteps.class);
Configuration configuration = builderAnnotated.buildConfiguration();
assertThatStepsInstancesAre(builderAnnotated.buildCandidateSteps(configuration), WeldStepBean.class, FooSteps.class);
}
use of org.jbehave.core.configuration.Configuration in project jbehave-core by jbehave.
the class WeldAnnotationBuilderBehaviour method shouldBuildOnlyWeldStepsListIfAnnotationOrAnnotatedValuesNotPresent.
@Test
public void shouldBuildOnlyWeldStepsListIfAnnotationOrAnnotatedValuesNotPresent() {
AnnotationBuilder builderNotAnnotated = createBuilder(NotAnnotated.class);
Configuration configuration = builderNotAnnotated.buildConfiguration();
assertThatStepsInstancesAre(builderNotAnnotated.buildCandidateSteps(configuration), WeldStepBean.class);
}
Aggregations