added test case to PoolTest.java
[appc.git] / appc-common / src / test / java / org / onap / appc / pool / PoolTest.java
index 5623e76..d61296a 100644 (file)
@@ -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"));
+    }
 }