summaryrefslogtreecommitdiffstats
path: root/huawei
diff options
context:
space:
mode:
authorMD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com>2020-08-21 17:50:00 +0530
committerMD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com>2020-08-21 17:50:00 +0530
commita260e52a2b9db721d24d80e0e9aec6ff80150eec (patch)
tree24c6b7093b6040f3ebbfa32cccdaee73d966b9bb /huawei
parent745644bb4aeaf745eeeb6f924318f6792730517d (diff)
Code coverage should be at least 55%
Issue-ID: VFC-1726 Signed-off-by: MD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com> Change-Id: Iea50cfc73976120cf4ede66fcd34be5899bc10b9
Diffstat (limited to 'huawei')
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/connect/SslCertificateSocketTest.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/connect/SslCertificateSocketTest.java b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/connect/SslCertificateSocketTest.java
index 0e31faf8..f0246d6f 100644
--- a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/connect/SslCertificateSocketTest.java
+++ b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/connect/SslCertificateSocketTest.java
@@ -58,4 +58,17 @@ public class SslCertificateSocketTest {
e.printStackTrace();
}
}
+
+
+ @Test
+ public void createSocketTest6() {
+ SslCertificateSocket socket = new SslCertificateSocket();
+ try {
+ HttpConnectionParams params = new HttpConnectionParams();
+ params.setConnectionTimeout(3000);
+ socket.createSocket("http://127.0.0.1", 1234);
+ } catch(IOException e) {
+ e.printStackTrace();
+ }
+ }
}