use of com.adaptris.core.jms.MockNoOpConnectionErrorHandler in project interlok by adaptris.
the class ChannelTest method createMockJmsConnection.
private MockJmsConnection createMockJmsConnection(String uid, String brokerUrl) {
MockJmsConnection connection = new MockJmsConnection();
if (uid != null)
connection.setUniqueId(uid);
UrlVendorImplementation vendorImp = new UrlVendorImplementation() {
@Override
public ConnectionFactory createConnectionFactory() throws JMSException {
return null;
}
};
vendorImp.setBrokerUrl(brokerUrl);
connection.setVendorImplementation(vendorImp);
connection.setConnectionErrorHandler(new MockNoOpConnectionErrorHandler());
return connection;
}
Aggregations