use of org.mule.tck.testmodels.mule.TestTransactionManagerFactory in project mule by mulesoft.
the class TransactionManagerFactoryBeanTestCase method registerTransactionManager.
@Test
public void registerTransactionManager() throws Exception {
DefaultMuleContext context = (DefaultMuleContext) new DefaultMuleContextFactory().createMuleContext(new TestServicesConfigurationBuilder(), new DefaultsConfigurationBuilder());
TransactionManagerFactoryBean txMgrFB = new TransactionManagerFactoryBean();
txMgrFB.setMuleContext(context);
txMgrFB.setTxManagerFactory(new TestTransactionManagerFactory());
TransactionManager transactionManager = txMgrFB.getObject();
assertThat(transactionManager, not(is(IsNull.nullValue())));
}
Aggregations