summaryrefslogtreecommitdiffstats
path: root/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/RegisterMgrTest.java
diff options
context:
space:
mode:
authormukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com>2020-08-21 16:16:20 +0530
committermukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com>2020-08-21 16:16:20 +0530
commit61696a584efe49df1067a624f969c1851d00cac1 (patch)
tree4f18503c8227d29b76509685b9f72aa1338641fc /huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/RegisterMgrTest.java
parent81529f59455b00b2aa0e7b36f8dee872567143a3 (diff)
Code coverage should be at least 55%
Issue-ID: VFC-1726 Signed-off-by: mukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com> Change-Id: Ic3187827c24eff3e2ce52690a71d4146f8e5b271
Diffstat (limited to 'huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/RegisterMgrTest.java')
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/RegisterMgrTest.java39
1 files changed, 21 insertions, 18 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/RegisterMgrTest.java b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/RegisterMgrTest.java
index 4fdd7057..5c965ccc 100644
--- a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/RegisterMgrTest.java
+++ b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/RegisterMgrTest.java
@@ -36,30 +36,33 @@ public class RegisterMgrTest {
@Test
public void testRegister() {
- new MockUp<VnfmRestfulUtil>() {
-
- @Mock
- public RestfulResponse getRemoteResponse(String url, String methodType, String params) {
- RestfulResponse rsp = new RestfulResponse();
- rsp.setStatus(200);
- return rsp;
- }
- };
+// new MockUp<VnfmRestfulUtil>() {
+//
+// @Mock
+// public RestfulResponse getRemoteResponse(String url, String methodType, String params) {
+// RestfulResponse rsp = new RestfulResponse();
+// rsp.setStatus(200);
+// return rsp;
+// }
+// };
RegisterMgr register = new RegisterMgr();
register.register();
+
+
+
}
@Test
public void testUnRegister() {
- new MockUp<VnfmRestfulUtil>() {
-
- @Mock
- public RestfulResponse getRemoteResponse(String url, String methodType, String params) {
- RestfulResponse rsp = new RestfulResponse();
- rsp.setStatus(200);
- return rsp;
- }
- };
+// new MockUp<VnfmRestfulUtil>() {
+//
+// @Mock
+// public RestfulResponse getRemoteResponse(String url, String methodType, String params) {
+// RestfulResponse rsp = new RestfulResponse();
+// rsp.setStatus(200);
+// return rsp;
+// }
+// };
RegisterMgr register = new RegisterMgr();
register.unRegister();
}