use of cucumber.runtime.java.spring.contexthierarchyconfig.WithContextHierarchyAnnotation in project cucumber-jvm by cucumber.
the class SpringFactoryTest method shouldRespectContextHierarchyInStepDefs.
@Test
public void shouldRespectContextHierarchyInStepDefs() {
final ObjectFactory factory = new SpringFactory();
factory.addClass(WithContextHierarchyAnnotation.class);
factory.start();
WithContextHierarchyAnnotation stepdef = factory.getInstance(WithContextHierarchyAnnotation.class);
factory.stop();
assertNotNull(stepdef);
assertTrue(stepdef.isAutowired());
}
Aggregations