Search in sources :

Example 1 with MockNoOpConnectionErrorHandler

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;
}
Also used : UrlVendorImplementation(com.adaptris.core.jms.UrlVendorImplementation) MockNoOpConnectionErrorHandler(com.adaptris.core.jms.MockNoOpConnectionErrorHandler) MockJmsConnection(com.adaptris.interlok.junit.scaffolding.jms.MockJmsConnection)

Aggregations

MockNoOpConnectionErrorHandler (com.adaptris.core.jms.MockNoOpConnectionErrorHandler)1 UrlVendorImplementation (com.adaptris.core.jms.UrlVendorImplementation)1 MockJmsConnection (com.adaptris.interlok.junit.scaffolding.jms.MockJmsConnection)1