diff options
author | Sudarshan Kumar <sudars19@in.ibm.com> | 2019-04-01 23:59:39 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-04-02 22:27:37 +0000 |
commit | 5ec07f4ebb488d30ba316019f4d3dd9ddf3cc30d (patch) | |
tree | cebafea54ce3934c01314658feb4841749debc25 /appc-dg/appc-dg-shared/appc-dg-dependency-model | |
parent | 6bf7ea2d90317508b64f74fed91a4b1fe5e781df (diff) |
Addtional Test Cases added InventoryModel.java
Addtional Test Cases added InventoryModel.java
Issue-ID: APPC-1372
Change-Id: If131ad2d9a5a906b9741426d0c22399c98c3524a
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
Diffstat (limited to 'appc-dg/appc-dg-shared/appc-dg-dependency-model')
-rw-r--r-- | appc-dg/appc-dg-shared/appc-dg-dependency-model/src/test/java/org/onap/appc/dg/flowbuilder/TestFlowBuilder.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/appc-dg/appc-dg-shared/appc-dg-dependency-model/src/test/java/org/onap/appc/dg/flowbuilder/TestFlowBuilder.java b/appc-dg/appc-dg-shared/appc-dg-dependency-model/src/test/java/org/onap/appc/dg/flowbuilder/TestFlowBuilder.java index 383417a1f..ef3a1af7b 100644 --- a/appc-dg/appc-dg-shared/appc-dg-dependency-model/src/test/java/org/onap/appc/dg/flowbuilder/TestFlowBuilder.java +++ b/appc-dg/appc-dg-shared/appc-dg-dependency-model/src/test/java/org/onap/appc/dg/flowbuilder/TestFlowBuilder.java @@ -7,6 +7,8 @@ * Copyright (C) 2017 Amdocs * ================================================================================ * Modifications (C) 2019 Ericsson + * ================================================================================ + * Modifications (C) 2019 IBM * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -158,6 +160,13 @@ public class TestFlowBuilder { InventoryModel inventoryModel = readInventoryModel(); builder.buildFlowModel(dependencyModel,inventoryModel); } + + @Test + public void testInventoryModelToString(){ + Vnf vnf = createVnf("vnf_1","vABCD","1"); + InventoryModel inventoryModel = new InventoryModel(vnf); + Assert.assertEquals("InventoryModel = Vnf : vnfId = vnf_1 , vnfType = vABCD", inventoryModel.toString()); + } private VnfcDependencyModel readCyclicDependencyModelWithRootNode() { Vnfc a = createVnfc("A","Active-Passive",null); |