summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/layer/SwingLayerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/layer/SwingLayerTest.java')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/layer/SwingLayerTest.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/layer/SwingLayerTest.java b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/layer/SwingLayerTest.java
index e52d01b6..100525bc 100644
--- a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/layer/SwingLayerTest.java
+++ b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/layer/SwingLayerTest.java
@@ -3,6 +3,7 @@
* ONAP Portal SDK
* ===================================================================
* Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2018 Samsung Electronics Co., Ltd.
* ===================================================================
*
* Unless otherwise specified, all software contained herein is licensed
@@ -52,6 +53,7 @@ import org.onap.portalsdk.analytics.gmap.line.Line;
import org.onap.portalsdk.analytics.gmap.map.ColorProperties;
import org.onap.portalsdk.analytics.gmap.map.NovaMap;
import org.onap.portalsdk.analytics.gmap.node.Node;
+import org.onap.portalsdk.analytics.gmap.node.NodeParam;
import org.onap.portalsdk.analytics.xmlobj.MockitoTestSuite;
import org.springframework.test.util.ReflectionTestUtils;
@@ -81,9 +83,18 @@ public class SwingLayerTest {
novaMap.setShowLegend(true);
ReflectionTestUtils.setField(novaMap, "transform", new AffineTransform());
Node nodeObj = new Node(new NovaMap());
- nodeObj.addNode(13.13d, 10.10d, "nodeType", "nodeID", "type=domestic|year=2016", 13, true, true);
- nodeObj.addNode(13.14d, 10.11d, "nodeType", "nodeID", "type=international|year=2017", 13, true, true);
- nodeObj.addNode(13.15d, 10.12d, "nodeType", "nodeID", "type=local|year=2018", 13, true, true);
+ nodeObj.addNode(
+ new NodeParam().setLongitude(13.13d).setLatitude(10.10d).setNodeType("nodeType").setNodeID("nodeID")
+ .setNodeAttributes("type=domestic|year=2016").setState(13).setMoveable(true)
+ .setDeleteable(true));
+ nodeObj.addNode(
+ new NodeParam().setLongitude(13.14d).setLatitude(10.11d).setNodeType("nodeType").setNodeID("nodeID")
+ .setNodeAttributes("type=international|year=2017").setState(13).setMoveable(true)
+ .setDeleteable(true));
+ nodeObj.addNode(
+ new NodeParam().setLongitude(13.15d).setLatitude(10.12d).setNodeType("nodeType").setNodeID("nodeID")
+ .setNodeAttributes("type=local|year=2018").setState(13).setMoveable(true)
+ .setDeleteable(true));
novaMap.setNode(nodeObj);
swingLayer = new SwingLayer(novaMap);
BufferedImage image = new BufferedImage(novaMap.getBoundingBox().width, novaMap.getBoundingBox().height, BufferedImage.TYPE_INT_ARGB);