Search in sources :

Example 1 with AutowiresPlatformTransactionManager

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());
}
Also used : ObjectFactory(cucumber.api.java.ObjectFactory) AutowiresPlatformTransactionManager(cucumber.runtime.java.spring.commonglue.AutowiresPlatformTransactionManager) Test(org.junit.Test)

Aggregations

ObjectFactory (cucumber.api.java.ObjectFactory)1 AutowiresPlatformTransactionManager (cucumber.runtime.java.spring.commonglue.AutowiresPlatformTransactionManager)1 Test (org.junit.Test)1