Addtional Test Cases added InventoryModel.java 87/83887/2
authorSudarshan Kumar <sudars19@in.ibm.com>
Mon, 1 Apr 2019 18:29:39 +0000 (23:59 +0530)
committerTakamune Cho <takamune.cho@att.com>
Tue, 2 Apr 2019 22:27:37 +0000 (22:27 +0000)
Addtional Test Cases added InventoryModel.java

Issue-ID: APPC-1372
Change-Id: If131ad2d9a5a906b9741426d0c22399c98c3524a
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
appc-dg/appc-dg-shared/appc-dg-dependency-model/src/test/java/org/onap/appc/dg/flowbuilder/TestFlowBuilder.java

index 383417a..ef3a1af 100644 (file)
@@ -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);