use of com.adaptris.core.transaction.DummyTransactionManager in project interlok by adaptris.
the class SharedComponentListTest method testSharedTransactionManager_StandardLookup.
@Test
public void testSharedTransactionManager_StandardLookup() throws Exception {
Adapter adapter = new Adapter();
adapter.setUniqueId(getName());
adapter.getSharedComponents().setTransactionManager(new DummyTransactionManager(getName()));
try {
start(adapter);
SharedTransactionManager conn = new SharedTransactionManager(getName());
conn.init();
assertNotNull(conn.proxiedTransactionManager());
} finally {
stop(adapter);
}
}
use of com.adaptris.core.transaction.DummyTransactionManager 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