diff options
author | Amichai Hemli <amichai.hemli@intl.att.com> | 2019-12-19 14:41:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-19 14:41:58 +0000 |
commit | 0788ea75c265efb8a030d7a846f7dfb06e2bcbd7 (patch) | |
tree | 8ebc45d938da37cb8f1da2bc6110d335117e54bb /vid-app-common/src/test/java/org/onap | |
parent | 169e68bdb8c53c7f675f1fd5dce9849edb532988 (diff) | |
parent | fecb7b8df6d8f589fd879b41731e7495cf657c92 (diff) |
Merge "Tweak add resources summarizing function in service instance"
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.java | 7 |
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); } |