From 3895137ad61c3630074148e9a4f01e859f954a6f Mon Sep 17 00:00:00 2001 From: ezhil Date: Thu, 27 Sep 2018 14:41:41 +0530 Subject: Added testcase to LineInfo Added testcase to LineInfo Issue-ID: PORTAL-406 Change-Id: I9f4beffac18f99fef82b324ca4d41a7c193ed9c4 Signed-off-by: ezhil --- .../java/org/onap/portalsdk/analytics/gmap/line/LineInfoTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ecomp-sdk') 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 lineAttributes1 = new HashMap<>(); + lineAttributes1.put("length", "200cm"); + lineInfo.initializeAttributes(lineAttributes1); + List list = lineInfo.getAttributeKeys(); + assertEquals("length", list.get(0)); + } } -- cgit 1.2.3-korg