use of org.jbehave.core.configuration.AnnotationMonitor in project jbehave-core by jbehave.
the class PicoAnnotationBuilderBehaviour method shouldNotBuildContainerIfModuleNotInstantiable.
@Test
public void shouldNotBuildContainerIfModuleNotInstantiable() {
AnnotationMonitor annotationMonitor = mock(AnnotationMonitor.class);
PicoAnnotationBuilder builderPrivateModule = new PicoAnnotationBuilder(AnnotatedWithPrivateModule.class, annotationMonitor);
assertThatStepsInstancesAre(builderPrivateModule.buildCandidateSteps());
verify(annotationMonitor).elementCreationFailed(isA(Class.class), isA(Exception.class));
}
use of org.jbehave.core.configuration.AnnotationMonitor in project jbehave-core by jbehave.
the class GuiceAnnotationBuilderBehaviour method shouldNotBuildContainerIfModuleNotInstantiable.
@Test
public void shouldNotBuildContainerIfModuleNotInstantiable() {
AnnotationMonitor annotationMonitor = mock(AnnotationMonitor.class);
AnnotationBuilder builderPrivateModule = new GuiceAnnotationBuilder(AnnotatedWithPrivateModule.class, annotationMonitor);
assertThatStepsInstancesAre(builderPrivateModule.buildCandidateSteps());
verify(annotationMonitor).elementCreationFailed(isA(Class.class), isA(Exception.class));
}
Aggregations