summaryrefslogtreecommitdiffstats
path: root/holmes-actions/src/test/java
diff options
context:
space:
mode:
authorFengLiang <feng.liang1@zte.com.cn>2017-03-02 14:10:01 +0800
committerFengLiang <feng.liang1@zte.com.cn>2017-03-02 14:10:01 +0800
commit739c5a3717f5b134de059e6ea895f3d626cb72d7 (patch)
tree888ece7e0d8c55f701778cedce14ae87f88605ca /holmes-actions/src/test/java
parent23dd65b8421041947027b3b5ab87ddf3b379b5ba (diff)
Add dsa i18n
Change-Id: I1d54f847dac127c0cc90cfc0517fc7094bcbf776 Issue-ID:HOLMES-51 Signed-off-by: FengLiang <feng.liang1@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/test/java')
-rw-r--r--holmes-actions/src/test/java/org/openo/holmes/common/producer/MQProducerTest.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/holmes-actions/src/test/java/org/openo/holmes/common/producer/MQProducerTest.java b/holmes-actions/src/test/java/org/openo/holmes/common/producer/MQProducerTest.java
index 58ea684..1390b77 100644
--- a/holmes-actions/src/test/java/org/openo/holmes/common/producer/MQProducerTest.java
+++ b/holmes-actions/src/test/java/org/openo/holmes/common/producer/MQProducerTest.java
@@ -67,6 +67,22 @@ public class MQProducerTest {
}
@Test
+ public void init() {
+ MQConfig mqConfig = new MQConfig();
+ mqConfig.brokerIp = "127.0.0.1";
+ mqConfig.brokerPort = 61616;
+ mqConfig.brokerPassword = "admin";
+ mqConfig.brokerUsername = "admin";
+ expect(mqConfigProvider.get()).andReturn(mqConfig).anyTimes();
+
+ PowerMock.replayAll();
+
+ mqProducer.init();
+
+ PowerMock.verifyAll();
+ }
+
+ @Test
public void sendAlarmMQTopicMsg() throws Exception {
Alarm alarm = new Alarm();
Connection connection = PowerMock.createMock(Connection.class);