summaryrefslogtreecommitdiffstats
path: root/holmes-actions/src/test
diff options
context:
space:
mode:
authorShiwei Tian <tian.shiwei@zte.com.cn>2017-10-20 16:20:05 +0800
committerShiwei Tian <tian.shiwei@zte.com.cn>2017-10-21 11:02:28 +0800
commitece7abcfdf6d68a8f41732883435822ceb745c11 (patch)
tree9fbf4fd69e1ba1cde1531bfb9ac322184ff79ddb /holmes-actions/src/test
parentc3a783d2ed1e9e19525b7a88a0ef29aab419a436 (diff)
modify bug
Issue-ID: HOLMES-71 Change-Id: I4af999e2061e66f4323b8b7657c4d713e4a4ae00 Signed-off-by: Shiwei Tian <tian.shiwei@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/test')
-rw-r--r--holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java2
-rw-r--r--holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java b/holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java
index bc91f43..6cbc56e 100644
--- a/holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java
+++ b/holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java
@@ -24,7 +24,7 @@ public class AaiConfigTest {
@Test
public void testAaiConfig_get_static_fields() {
- String aaiVnfAddr = "/aai/v11/network/generic-vnfs/generic-vnf?";
+ String aaiVnfAddr = "/aai/v11/network/generic-vnfs/generic-vnf";
String aaiVmAddr = "/aai/v11/search/nodes-query?search-node-type=vserver&filter=";
String xTransactionId = "9999";
String xFromAppId = "jimmy-postman";
diff --git a/holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java b/holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java
index 15b6b80..3f61813 100644
--- a/holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java
+++ b/holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java
@@ -21,6 +21,7 @@ import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.List;
+import org.easymock.EasyMock;
import org.junit.runner.RunWith;
import org.omg.CORBA.Any;
import org.onap.holmes.common.aai.AaiQuery;
@@ -177,13 +178,14 @@ public class DmaapServiceTest {
VesAlarm vesAlarm = new VesAlarm();
vesAlarm.setEventId("11111");
vesAlarm.setEventName("3333");
+ vesAlarm.setSourceId("111");
PowerMock.expectPrivate(dmaapService, "getVnfEntity", anyObject(String.class),
anyObject(String.class)).andReturn(null).anyTimes();
PowerMock.replayAll();
PolicyMsg actual = Whitebox
- .invokeMethod(dmaapService, "getEnrichedPolicyMsg", vmEntity, vesAlarm, "loopName");
+ .invokeMethod(dmaapService, "getEnrichedPolicyMsg", vmEntity, vesAlarm, vesAlarm, "loopName");
PowerMock.verifyAll();
assertThat(actual.getClosedLoopControlName(), equalTo(null));