From e4a446caec470f4857411a0afa44408728392b95 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 13 Feb 2019 14:57:55 +0530 Subject: 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 --- .../org/onap/appc/adapter/ansible/impl/TestConnectionBuilder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'appc-adapters') 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; -- cgit 1.2.3-korg