@Test public void cloudRabbitConnectionFactoryWithProperties() { ApplicationContext testContext = getTestApplicationContext("cloud-rabbit-with-config.xml", createService("my-service")); ConnectionFactory connector = testContext.getBean("service-properties", getConnectorType()); RabbitConnectionFactoryCloudConfigTestHelper.assertConfigProperties(connector, DEFAULT_CHANNEL_CACHE_SIZE, 5, 10, 15, true); }
@Test public void cloudRabbitConnectionFactoryWithConfiguration() { ApplicationContext testContext = getTestApplicationContext("cloud-rabbit-with-config.xml", createService("my-service")); ConnectionFactory connector = testContext.getBean("service-channelCacheSize200", getConnectorType()); RabbitConnectionFactoryCloudConfigTestHelper.assertConfigProperties(connector, 200, -1, -1, DEFAULT_CONNECTION_LIMIT, false); }
@Test public void cloudRabbitConnectionFactoryWithConfigurationAndProperties() { ApplicationContext testContext = getTestApplicationContext("cloud-rabbit-with-config.xml", createService("my-service")); ConnectionFactory connector = testContext.getBean("service-channelCacheSize200-properties", getConnectorType()); RabbitConnectionFactoryCloudConfigTestHelper.assertConfigProperties(connector, 200, 5, 10, 15, true); } }