From: Sandeep J Date: Wed, 13 Feb 2019 09:27:55 +0000 (+0530) Subject: modified existing test case to increase coverage X-Git-Tag: 1.5.0~241 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e4a446caec470f4857411a0afa44408728392b95;p=appc.git 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 --- 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;