diff options
Diffstat (limited to 'vid-app-common/src/test/java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java | 11 |
1 files changed, 11 insertions, 0 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 d1124f3a8..4b4aa4deb 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 @@ -491,6 +491,17 @@ public class AsyncInstantiationBusinessLogicTest extends AsyncInstantiationBaseT return prepareServiceInstantiation(PROJECT_NAME, isUserProvidedNaming, bulkSize); } + @Test + public void getSummarizedMap(){ + 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)); + assertEquals(childrenMap,expectedMap); + + } @Test |