use of com.adaptris.core.transaction.TransactionManager in project interlok by adaptris.
the class JndiHelperTest method testBindNullTransactionManager_Debug.
@Test
public void testBindNullTransactionManager_Debug() throws Exception {
TransactionManager transactionManager = null;
InitialContext initialContext = new InitialContext(env);
try {
JndiHelper.bind(initialContext, transactionManager, true);
} catch (CoreException expected) {
fail("Should not error, just ignore.");
}
}
use of com.adaptris.core.transaction.TransactionManager in project interlok by adaptris.
the class SharedComponentListTest method retrieveObjectForSampleConfig.
@Override
protected Object retrieveObjectForSampleConfig() {
Adapter adapter = null;
try {
adapter = createAdapter();
for (ConnectionBuilder b : ConnectionBuilder.values()) {
adapter.getSharedComponents().addConnection(b.build());
}
TransactionManager transactionManager = new DummyTransactionManager("myTransactionManager");
adapter.getSharedComponents().setTransactionManager(transactionManager);
Channel c = new Channel();
c.setProduceConnection(new SharedConnection("goofy_edison"));
c.setConsumeConnection(new EmbeddedConnection());
} catch (Exception e) {
throw new RuntimeException(e);
}
return adapter;
}
Aggregations