Added testcase to LineInfo 59/69259/4
authorezhil <ezhrajam@in.ibm.com>
Thu, 27 Sep 2018 09:11:41 +0000 (14:41 +0530)
committerEzhilarasi R <ezhrajam@in.ibm.com>
Thu, 27 Sep 2018 14:23:28 +0000 (14:23 +0000)
Added testcase to LineInfo

Issue-ID: PORTAL-406
Change-Id: I9f4beffac18f99fef82b324ca4d41a7c193ed9c4
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/line/LineInfoTest.java

index 5ff6e78..f9a5ee2 100644 (file)
@@ -114,4 +114,12 @@ public class LineInfoTest {
                assertEquals("length", list.get(0));    
        }
 
+       @Test
+       public void getAttributeKeysTest() throws Exception {
+                Map<String, String> lineAttributes1 = new HashMap<>();
+               lineAttributes1.put("length", "200cm");
+               lineInfo.initializeAttributes(lineAttributes1);
+               List<String> list = lineInfo.getAttributeKeys();
+               assertEquals("length", list.get(0));
+       }
 }