aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/test')
-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);
}