From 5ec07f4ebb488d30ba316019f4d3dd9ddf3cc30d Mon Sep 17 00:00:00 2001 From: Sudarshan Kumar Date: Mon, 1 Apr 2019 23:59:39 +0530 Subject: Addtional Test Cases added InventoryModel.java Addtional Test Cases added InventoryModel.java Issue-ID: APPC-1372 Change-Id: If131ad2d9a5a906b9741426d0c22399c98c3524a Signed-off-by: Sudarshan Kumar --- .../test/java/org/onap/appc/dg/flowbuilder/TestFlowBuilder.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- cgit 1.2.3-korg