diff options
author | 2018-02-26 11:15:42 +0530 | |
---|---|---|
committer | 2018-02-26 11:15:42 +0530 | |
commit | 48f249950e178b30653f020c3ea0f845cf84c0c5 (patch) | |
tree | 864a7b311af9863123d926a57fe7587167bdfdbe /ResmanagementService/service/src/test | |
parent | b3f8c28fa4c50d0acd19ef98638feb0e9bd7457f (diff) |
Improve coverage of res mgr hw
Issue-ID: VFC-764
Change-Id: I26052d87054fb447fa5c0da0d22dd90e1b69cbf5
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'ResmanagementService/service/src/test')
-rw-r--r-- | ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrServiceTest.java | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrServiceTest.java b/ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrServiceTest.java index 3ddaf26..2c49ba3 100644 --- a/ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrServiceTest.java +++ b/ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrServiceTest.java @@ -16,11 +16,12 @@ package org.onap.vfc.nfvo.resmanagement.service.adapter.impl; +import java.io.File; import java.io.IOException; import org.junit.Test; -import org.onap.vfc.nfvo.resmanagement.service.adapter.impl.ResmgrAdapterMgrService; +import junit.framework.Assert; import mockit.Mock; import mockit.MockUp; @@ -28,7 +29,7 @@ import mockit.MockUp; * <br> * <p> * </p> - * + * * @author * @version VFC 1.0 Sep 24, 2016 */ @@ -66,4 +67,19 @@ public class ResmgrAdapterMgrServiceTest { ResmgrAdapterMgrService resmgrService = new ResmgrAdapterMgrService(); resmgrService.register(); } + + + @SuppressWarnings("deprecation") + @Test + public void testReadJson() { + File file = new File("./demo.json"); + try { + file.createNewFile(); + String content = ResmgrAdapterMgrService.readJson("./demo.json"); + Assert.assertEquals(content, ""); + file.delete(); + } catch (IOException e) { + e.printStackTrace(); + } + } } |