From bd3b5f60c8c28b802aa6cfece4f743aea09ef5e1 Mon Sep 17 00:00:00 2001 From: chanfansang Date: Mon, 26 Feb 2018 10:51:58 +0800 Subject: [PATCH] add the test to 50% Change-Id: Ifaa8e61df04e9ca19975b1cd354412c979743e24 Issue-ID: VFC-742 Signed-off-by: chanfansang --- .../northbound/client/NorthMessageMgrTest.java | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/ems/boco/src/test/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgrTest.java b/ems/boco/src/test/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgrTest.java index e00469e..65d4e81 100644 --- a/ems/boco/src/test/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgrTest.java +++ b/ems/boco/src/test/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgrTest.java @@ -15,17 +15,24 @@ */ package org.onap.vfc.nfvo.emsdriver.northbound.client; +import java.io.FileInputStream; +import java.util.List; +import java.util.Properties; + import org.junit.Before; import org.junit.Test; +import org.onap.vfc.nfvo.emsdriver.commons.model.CollectVo; +import org.onap.vfc.nfvo.emsdriver.commons.model.EMSInfo; +import org.onap.vfc.nfvo.emsdriver.configmgr.ConfigurationInterface; public class NorthMessageMgrTest { - /*private NorthMessageMgr northMessageMgr; - private ConfigurationInterface configurationInterface;*/ + private NorthMessageMgr northMessageMgr; + private ConfigurationInterface configurationInterface; @Before public void setUp() throws Exception { - /*configurationInterface = new ConfigurationInterface() { + configurationInterface = new ConfigurationInterface() { public Properties getProperties() { Properties pps = new Properties(); @@ -49,13 +56,13 @@ public class NorthMessageMgrTest { northMessageMgr = new NorthMessageMgr(); northMessageMgr.setConfigurationInterface(configurationInterface); northMessageMgr.dispose(); - */ + } @Test public void test() { - /*Thread t = new Thread(northMessageMgr); - t.start();*/ + Thread t = new Thread(northMessageMgr); + t.start(); } } -- 2.16.6