summaryrefslogtreecommitdiffstats
path: root/controlloop/common/simulators/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'controlloop/common/simulators/src/test')
-rw-r--r--controlloop/common/simulators/src/test/java/org/onap/policy/simulators/VfcSimulatorTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/VfcSimulatorTest.java b/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/VfcSimulatorTest.java
index 0fb41ab9b..7dadaadef 100644
--- a/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/VfcSimulatorTest.java
+++ b/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/VfcSimulatorTest.java
@@ -22,6 +22,7 @@ package org.onap.policy.simulators;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
+import static org.junit.Assert.assertTrue;
import java.util.HashMap;
@@ -54,13 +55,14 @@ public class VfcSimulatorTest {
public void testPost(){
Pair<Integer, String> httpDetails = RESTManager.post("http://localhost:6668/api/nslcm/v1/ns/1234567890/heal", "username", "password", new HashMap<String, String>(), "application/json", "Some Request Here");
assertNotNull(httpDetails);
+ assertTrue(httpDetails.a == 202);
VFCResponse response = Serialization.gsonPretty.fromJson(httpDetails.b, VFCResponse.class);
assertNotNull(response);
}
@Test
public void testGet(){
- Pair<Integer, String> httpDetails = RESTManager.get("http://localhost:6668/api/nslcm/v1/jobs/1234&responseId=5678", "username", "password", new HashMap<String, String>());
+ Pair<Integer, String> httpDetails = RESTManager.get("http://localhost:6668/api/nslcm/v1/jobs/1234", "username", "password", new HashMap<String, String>());
assertNotNull(httpDetails);
VFCResponse response = Serialization.gsonPretty.fromJson(httpDetails.b, VFCResponse.class);
assertNotNull(response);