modified existing test case to increase coverage 72/78372/3
authorSandeep J <sandeejh@in.ibm.com>
Wed, 13 Feb 2019 09:27:55 +0000 (14:57 +0530)
committerTakamune Cho <takamune.cho@att.com>
Wed, 13 Feb 2019 19:28:56 +0000 (19:28 +0000)
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>
appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/test/java/org/onap/appc/adapter/ansible/impl/TestConnectionBuilder.java

index 89d8b44..69424f8 100644 (file)
@@ -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;