aboutsummaryrefslogtreecommitdiffstats
path: root/appc-core
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-05-18 13:54:21 +0530
committerTakamune Cho <takamune.cho@att.com>2020-05-18 13:10:21 +0000
commit0be119cd1220b346e731daf30bdce0b1b9077da5 (patch)
tree196c0ee64b33faf88cf8aa4ed076f1c11aeac0ff /appc-core
parentece150b7f8acc61dd983f6674bf9c8d4f086b84c (diff)
added asserts statements in 5 JUnits
Issue-ID: APPC-1859 Change-Id: I121ff2a1514310ccffdecdf2a1bcc78e62f0dbff Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'appc-core')
-rw-r--r--appc-core/appc-common-bundle/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java
index 95429f053..be018db19 100644
--- a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java
+++ b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java
@@ -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
}