Search in sources :

Example 11 with ConnectionFactory

use of org.springframework.amqp.rabbit.connection.ConnectionFactory in project spring-cloud-connectors by spring-cloud.

the class RabbitConnectionFactoryCreatorTest method cloudRabbitCreationNoUri.

@Test
public void cloudRabbitCreationNoUri() throws Exception {
    AmqpServiceInfo serviceInfo = new AmqpServiceInfo("id", TEST_HOST, TEST_PORT, TEST_USERNAME, TEST_PASSWORD, TEST_VH);
    ConnectionFactory connector = testCreator.create(serviceInfo, null);
    assertConnectorPropertiesMatchUri(connector, serviceInfo.getUri());
}
Also used : ConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory) AmqpServiceInfo(org.springframework.cloud.service.common.AmqpServiceInfo) Test(org.junit.Test)

Aggregations

ConnectionFactory (org.springframework.amqp.rabbit.connection.ConnectionFactory)11 Test (org.junit.Test)10 ApplicationContext (org.springframework.context.ApplicationContext)6 URI (java.net.URI)3 AmqpServiceInfo (org.springframework.cloud.service.common.AmqpServiceInfo)3 CachingConnectionFactory (org.springframework.amqp.rabbit.connection.CachingConnectionFactory)1 DirectFieldAccessor (org.springframework.beans.DirectFieldAccessor)1