summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-12-19 15:17:36 +0200
committerIttay Stern <ittay.stern@att.com>2019-12-19 15:44:38 +0200
commitfecb7b8df6d8f589fd879b41731e7495cf657c92 (patch)
tree80c495ef9241b7e0d24a2f5563e2cccd9bb35b84 /vid-app-common/src/test/java/org/onap
parentfee16feed4b65692e44153c5e4453721785a285b (diff)
Tweak add resources summarizing function in service instance
Issue-ID: VID-724 Change-Id: I7e705aef5e94698c60bd4ea17991b5beb6f0dc54 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java b/vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java
index 4b4aa4deb..29d614cb2 100644
--- a/vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java
+++ b/vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java
@@ -496,9 +496,10 @@ public class AsyncInstantiationBusinessLogicTest extends AsyncInstantiationBaseT
ServiceInstantiation serviceInstantiation = TestUtils.readJsonResourceFileAsObject(
"/payload_jsons/templateSummarize4vnfs6vfmodules.json", ServiceInstantiation.class);
Map<String, Long> childrenMap = asyncInstantiationBL.getSummarizedChildrenMap(serviceInstantiation);
- HashMap<String, Long> expectedMap = new HashMap<>();
- expectedMap.put("vnf", Long.valueOf(4));
- expectedMap.put("vfModule", Long.valueOf(6));
+ Map<String, Long> expectedMap = ImmutableMap.of(
+ "vnf", 4L,
+ "vfModule", 6L
+ );
assertEquals(childrenMap,expectedMap);
}