aboutsummaryrefslogtreecommitdiffstats
path: root/appc-common/src
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-03 17:53:53 +0530
committerTakamune Cho <tc012c@att.com>2018-08-06 23:39:14 +0000
commit1267640ca31c536d761429207983aff8b9168ef0 (patch)
tree8d9c2f24cc153e2a98621b364e8b0279a2dd3412 /appc-common/src
parent46e785239c29d4823cace5137ecab5ce46a731f0 (diff)
added test case to PoolTest.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: Ibbafa33ed726dff65cbc3528bf09d9cf68d97eb3 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-common/src')
-rw-r--r--appc-common/src/test/java/org/onap/appc/pool/PoolTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/appc-common/src/test/java/org/onap/appc/pool/PoolTest.java b/appc-common/src/test/java/org/onap/appc/pool/PoolTest.java
index 5623e7658..d61296ac6 100644
--- a/appc-common/src/test/java/org/onap/appc/pool/PoolTest.java
+++ b/appc-common/src/test/java/org/onap/appc/pool/PoolTest.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -319,4 +321,12 @@ public class PoolTest implements Allocator<Testable>, Destructor<Testable> {
return e;
}
+
+ @Test
+ public void testGetAndSetProperties() throws PoolSpecificationException
+ {
+ pool= new Pool<Testable>(3, 5);
+ pool.setProperty("key1", "value1");
+ assertEquals("value1", pool.getProperty("key1"));
+ }
}