summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-09-27 14:41:41 +0530
committerEzhilarasi R <ezhrajam@in.ibm.com>2018-09-27 14:23:28 +0000
commit3895137ad61c3630074148e9a4f01e859f954a6f (patch)
tree9787440bc606b4fd74d87fab1803c059320e015e
parentafb7e4d6b9895146d5d7e27a7568a6360ca50ce3 (diff)
Added testcase to LineInfo
Added testcase to LineInfo Issue-ID: PORTAL-406 Change-Id: I9f4beffac18f99fef82b324ca4d41a7c193ed9c4 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
-rw-r--r--ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/line/LineInfoTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/line/LineInfoTest.java b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/line/LineInfoTest.java
index 5ff6e78b..f9a5ee2d 100644
--- a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/line/LineInfoTest.java
+++ b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/line/LineInfoTest.java
@@ -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));
+ }
}