Skip to content

Commit 0571e54

Browse files
Navyatha ReddiNavyatha Reddi
authored andcommitted
Added code changes for test cases.
1 parent e2580ef commit 0571e54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/functionaltests/java/com/ericsson/ei/rabbitmq/configuration/RabbitMQConfigurationTestSteps.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.springframework.amqp.core.TopicExchange;
1515
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
1616
import org.springframework.amqp.rabbit.core.RabbitAdmin;
17+
import org.springframework.amqp.rabbit.core.RabbitManagementTemplate;
1718
import org.springframework.amqp.rabbit.core.RabbitTemplate;
1819
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
1920
import org.springframework.beans.factory.annotation.Autowired;
@@ -64,6 +65,8 @@ public void connect_to_message_bus() throws Exception {
6465
File qpidConfig = new File(config);
6566
amqpBroker = new AMQPBrokerManager(qpidConfig.getAbsolutePath(), port);
6667
amqpBroker.startBroker();
68+
69+
RabbitManagementTemplate rabbitManagementTemplate = new RabbitManagementTemplate("amqp:guest@guest//localhost:"+rabbitMQPort);
6770

6871
RmqHandler rmqHandler = eventManager.getRmqHandler();
6972
rmqHandler.setPort(port);
@@ -74,6 +77,7 @@ public void connect_to_message_bus() throws Exception {
7477
RabbitTemplate rabbitTemplate = rabbitAdmin.getRabbitTemplate();
7578

7679
rmqHandler.setRabbitTemplate(rabbitTemplate);
80+
rmqHandler.setRabbitManagementTemplate(rabbitManagementTemplate);
7781
rmqHandler.getContainer().setRabbitAdmin(rabbitAdmin);
7882
rmqHandler.getContainer().setConnectionFactory(rmqHandler.getCachingConnectionFactory());
7983
rmqHandler.getContainer().setQueueNames(rmqHandler.getQueueName());

0 commit comments

Comments
 (0)