fixed some JUnits 35/108135/2
authorRupinder <rupinsi1@in.ibm.com>
Fri, 22 May 2020 12:14:30 +0000 (17:44 +0530)
committerRupinderjeet Singh <rupinsi1@in.ibm.com>
Tue, 26 May 2020 11:40:13 +0000 (11:40 +0000)
Issue-ID: SO-2804
Change-Id: I6589ea250ee95160febd40c55cbfbf1a81782b60
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
adapters/mso-openstack-adapters/src/test/java/org/onap/so/adapters/vnf/MsoVnfAdapterAsyncImplTest.java
adapters/mso-openstack-adapters/src/test/java/org/onap/so/adapters/vnf/MsoVnfAdapterImplTest.java

index 1a308b7..92761c8 100644 (file)
@@ -36,6 +36,7 @@ import org.junit.Test;
 import org.junit.rules.ExpectedException;
 import org.onap.so.entity.MsoRequest;
 import org.springframework.beans.factory.annotation.Autowired;
+import static org.junit.Assert.assertNotNull;
 
 public class MsoVnfAdapterAsyncImplTest extends BaseRestTestUtils {
 
@@ -90,6 +91,7 @@ public class MsoVnfAdapterAsyncImplTest extends BaseRestTestUtils {
         msoRequest.setServiceInstanceId("12345");
         instance.deleteVnfA("mdt1", "CloudOwner", "88a6ca3ee0394ade9403f075db23167e", "vSAMP12", "messageId",
                 msoRequest, "http://org.onap.so/notify/adapterNotify/updateVnfNotificationRequest");
+        assertNotNull(msoRequest);
     }
 
 }
index 9fc2aba..909a558 100644 (file)
@@ -57,6 +57,7 @@ import org.onap.so.openstack.utils.MsoHeatUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import com.github.tomakehurst.wiremock.WireMockServer;
 import com.github.tomakehurst.wiremock.stubbing.Scenario;
+import static org.junit.Assert.assertNotNull;
 
 
 public class MsoVnfAdapterImplTest extends BaseRestTestUtils {
@@ -86,6 +87,7 @@ public class MsoVnfAdapterImplTest extends BaseRestTestUtils {
                 "VFMOD", null, null, "b4ea86b4-253f-11e7-93ae-92361f002671", map, Boolean.TRUE, Boolean.TRUE,
                 Boolean.FALSE, msoRequest, new Holder<>(), new Holder<Map<String, String>>(),
                 new Holder<VnfRollback>());
+        assertNotNull(map);
     }
 
     @Test
@@ -101,6 +103,7 @@ public class MsoVnfAdapterImplTest extends BaseRestTestUtils {
         instance.createVfModule("mtn13", "CloudOwner", "88a6ca3ee0394ade9403f075db23167e", "vnf", "1", "", vnfName, "",
                 "VFMOD", null, null, "b4ea86b4-253f-11e7-93ae-92361f002671", map, null, Boolean.TRUE, Boolean.FALSE,
                 msoRequest, new Holder<>(), new Holder<Map<String, String>>(), new Holder<VnfRollback>());
+        assertNotNull(map);
     }
 
     @Test
@@ -132,6 +135,7 @@ public class MsoVnfAdapterImplTest extends BaseRestTestUtils {
                 "VFMOD", null, null, "b4ea86b4-253f-11e7-93ae-92361f002671", map, Boolean.FALSE, Boolean.TRUE,
                 Boolean.FALSE, msoRequest, new Holder<>(), new Holder<Map<String, String>>(),
                 new Holder<VnfRollback>());
+        assertNotNull(map);
     }
 
 
@@ -149,6 +153,7 @@ public class MsoVnfAdapterImplTest extends BaseRestTestUtils {
                 "VFMOD", null, null, "b4ea86b4-253f-11e7-93ae-92361f002671", map, Boolean.TRUE, Boolean.TRUE,
                 Boolean.FALSE, msoRequest, new Holder<>(), new Holder<Map<String, String>>(),
                 new Holder<VnfRollback>());
+        assertNotNull(map);
     }
 
 
@@ -479,6 +484,7 @@ public class MsoVnfAdapterImplTest extends BaseRestTestUtils {
                 "volumeGroupHeatStackId", "baseVfHeatStackId", "vfModuleStackId",
                 "b4ea86b4-253f-11e7-93ae-92361f002671", map, msoRequest, new Holder<Map<String, String>>(),
                 new Holder<VnfRollback>());
+        assertNotNull(msoRequest);
     }
 
     @Test
@@ -499,6 +505,7 @@ public class MsoVnfAdapterImplTest extends BaseRestTestUtils {
         } catch (Exception e) {
 
         }
+        assertNotNull(outputs);
     }
 
     private VfModuleCustomization getVfModuleCustomization() {