aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-02-13 14:57:55 +0530
committerTakamune Cho <takamune.cho@att.com>2019-02-13 19:28:56 +0000
commite4a446caec470f4857411a0afa44408728392b95 (patch)
tree10abe734600fa530a9ddaf536e8285ae647fc783
parent06d4030453f6d4be66e44d116933ee6b7947816a (diff)
modified existing test case to increase coverage
changing constructor argument from 0 to 1 increases code coverage Issue-ID: APPC-1086 Change-Id: Ic5f2d61bd96ef862c0b20d91c7b9af3f7ca1a081 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/test/java/org/onap/appc/adapter/ansible/impl/TestConnectionBuilder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/test/java/org/onap/appc/adapter/ansible/impl/TestConnectionBuilder.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/test/java/org/onap/appc/adapter/ansible/impl/TestConnectionBuilder.java
index 89d8b4487..69424f8c2 100644
--- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/test/java/org/onap/appc/adapter/ansible/impl/TestConnectionBuilder.java
+++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/test/java/org/onap/appc/adapter/ansible/impl/TestConnectionBuilder.java
@@ -2,6 +2,8 @@
* ============LICENSE_START=======================================================
* Copyright (C) 2018 Ericsson. All rights reserved.
* ================================================================================
+ * Modifications Copyright (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.
* You may obtain a copy of the License at
@@ -117,7 +119,7 @@ public class TestConnectionBuilder {
@Before
public void setup() throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException,
ClientProtocolException, IOException,APPCException {
- connectionBuilder = new ConnectionBuilder(0,2000);
+ connectionBuilder = new ConnectionBuilder(1,2000);
Whitebox.setInternalState(connectionBuilder, "httpClient", httpClient);
Whitebox.setInternalState(connectionBuilder, "httpContext", httpClientContext);
HttpResponse httpResponse = (HttpResponse) response;