added asserts statements in 5 JUnits
[appc.git] / appc-core / appc-common-bundle / src / test / java / org / onap / appc / configuration / DefaultConfigurationTest.java
index 95429f0..be018db 100644 (file)
@@ -41,6 +41,7 @@ import org.powermock.api.mockito.PowerMockito;
 import org.powermock.core.classloader.annotations.PrepareForTest;
 import org.powermock.reflect.Whitebox;
 import org.powermock.modules.junit4.PowerMockRunner;
+import static org.junit.Assert.assertNotNull;
 
 @RunWith(PowerMockRunner.class)
 @PrepareForTest(EncryptionTool.class)
@@ -356,6 +357,7 @@ public class DefaultConfigurationTest {
         Mockito.doThrow(new IOException("testing exception")).when(mockProp).load(mockIS);
         Whitebox.setInternalState(defaultConfiguration, "properties", mockProp);
         defaultConfiguration.setProperties(mockIS);
+        assertNotNull(mockIS);
         // Should come here without exception
     }