use of cucumber.runtime.java.spring.commonglue.AutowiresPlatformTransactionManager in project cucumber-jvm by cucumber.
the class SpringFactoryTest method shouldUseCucumberXmlIfNoClassWithSpringAnnotationIsFound.
@Test
public void shouldUseCucumberXmlIfNoClassWithSpringAnnotationIsFound() {
final ObjectFactory factory = new SpringFactory();
factory.addClass(AutowiresPlatformTransactionManager.class);
factory.start();
final AutowiresPlatformTransactionManager o1 = factory.getInstance(AutowiresPlatformTransactionManager.class);
factory.stop();
assertNotNull(o1);
assertNotNull(o1.getTransactionManager());
}
Aggregations