summaryrefslogtreecommitdiffstats
path: root/appc-core/appc-common-bundle
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-03-21 19:47:37 +0530
committerJoss Armstrong <joss.armstrong@ericsson.com>2019-03-21 14:43:37 +0000
commit0a4c5940e9757e422adc24d84044d742563b0829 (patch)
tree09f1f274a9c16f7315363bea0fd4af0539412c7f /appc-core/appc-common-bundle
parentf734eff061de3c8570e005aa282ceed0b0a8f7b5 (diff)
added test case to PoolTest.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I1389e3f6600bf8c09140a322c978a68c6fee5df1 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-core/appc-common-bundle')
-rw-r--r--appc-core/appc-common-bundle/src/test/java/org/onap/appc/pool/PoolTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/pool/PoolTest.java b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/pool/PoolTest.java
index d61296ac6..f774ff772 100644
--- a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/pool/PoolTest.java
+++ b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/pool/PoolTest.java
@@ -37,6 +37,7 @@ import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
+import java.util.Properties;
import org.junit.Before;
import org.junit.Test;
@@ -329,4 +330,11 @@ public class PoolTest implements Allocator<Testable>, Destructor<Testable> {
pool.setProperty("key1", "value1");
assertEquals("value1", pool.getProperty("key1"));
}
+
+ @Test
+ public void testGetProperties() throws PoolSpecificationException
+ {
+ pool= new Pool<Testable>(3, 5);
+ assertTrue(pool.getProperties() instanceof Properties);
+ }
}