fixed JUnits in 3 files 67/107867/1
authorRupinder <rupinsi1@in.ibm.com>
Tue, 19 May 2020 11:38:04 +0000 (17:08 +0530)
committerRupinder <rupinsi1@in.ibm.com>
Tue, 19 May 2020 11:38:13 +0000 (17:08 +0530)
Issue-ID: APPC-1859
Change-Id: I8b27ea7dd6f0e30f05297544aaef795695e150f8
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/impl/TestTenantCache.java
appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/onap/appc/dg/common/impl/TestVNFConfiguratorImpl.java
appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/onap/appc/dg/common/impl/VnfExecutionFlowImplTest.java

index 32f8d45..ba5e534 100644 (file)
@@ -171,6 +171,7 @@ public class TestTenantCache {
         TenantCache spyTenant = Mockito.spy(tenantCache);
         when(spyTenant.getServiceCatalogFactory(anyString(), anyString(), anyObject())).thenReturn(catalog);
         spyTenant.initialize();
+        assertNotNull(props);
     }
 
     /**
index 49bc43d..f9a3a01 100644 (file)
@@ -42,6 +42,7 @@ import org.powermock.core.classloader.annotations.PrepareForTest;
 import org.powermock.modules.junit4.PowerMockRunner;
 import com.att.eelf.configuration.EELFLogger;
 import com.att.eelf.configuration.EELFManager;
+import static org.junit.Assert.assertNotNull;
 
 @RunWith(PowerMockRunner.class)
 @PrepareForTest({MDSALStoreImpl.class, MDSALStoreFactory.class})
@@ -80,6 +81,7 @@ public class TestVNFConfiguratorImpl {
         params.put("configJSON", "configJSON");
         params.put("requestId", "requestId");
         configurator.storeConfig(params, new SvcLogicContext());
+        assertNotNull(configurator);
     }
 
     @Test
@@ -104,6 +106,7 @@ public class TestVNFConfiguratorImpl {
         params.put("configJSON", "configJSON");
         params.put("requestId", "requestId");
         configurator.storeConfig(params, new SvcLogicContext());
+        assertNotNull(configurator);
 
     }
 }
index 3f8c181..2023c99 100644 (file)
@@ -48,6 +48,7 @@ import org.powermock.modules.junit4.PowerMockRunner;
 import org.powermock.reflect.Whitebox;
 import com.att.eelf.configuration.EELFLogger;
 import com.att.eelf.configuration.EELFManager;
+import static org.junit.Assert.assertNotNull;
 
 @RunWith(PowerMockRunner.class)
 @PrepareForTest({FrameworkUtil.class, DependencyManager.class, DependencyModelFactory.class})
@@ -77,6 +78,7 @@ public class VnfExecutionFlowImplTest {
         VnfExecutionFlow vnfExecutionFlow = new VnfExecutionFlowImpl();
         Whitebox.setInternalState(vnfExecutionFlow, "logger", logger);
         vnfExecutionFlow.getVnfExecutionFlowData(params, context);
+        assertNotNull(params);
     }
 
     @Test
@@ -95,6 +97,7 @@ public class VnfExecutionFlowImplTest {
         VnfExecutionFlow vnfExecutionFlow = new VnfExecutionFlowImpl();
         Whitebox.setInternalState(vnfExecutionFlow, "logger", logger);
         vnfExecutionFlow.getVnfExecutionFlowData(params, context);
+        assertNotNull(params);
     }
 
     @Test(expected = RuntimeException.class)
@@ -384,6 +387,7 @@ public class VnfExecutionFlowImplTest {
 
         VnfExecutionFlow vnfExecutionFlow = new VnfExecutionFlowImpl();
         vnfExecutionFlow.getVnfExecutionFlowData(params, context);
+        assertNotNull(params);
     }
 
     @Test
@@ -418,5 +422,6 @@ public class VnfExecutionFlowImplTest {
 
         VnfExecutionFlow vnfExecutionFlow = new VnfExecutionFlowImpl();
         vnfExecutionFlow.getVnfExecutionFlowData(params, context);
+        assertNotNull(params);
     }
 }