From b45d4528f2c563cdff2e78837a4164deb4152283 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Mon, 8 Apr 2019 14:57:24 +0530 Subject: added test case to TestConnectionBuilder.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Ie7d84cc28ebd112c2ce224cd6c544939ef376ed1 Signed-off-by: Sandeep J --- .../org/onap/appc/adapter/ansible/impl/TestConnectionBuilder.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 69424f8c2..32c4ba33a 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 @@ -257,5 +257,11 @@ public class TestConnectionBuilder { AnsibleResult result = connectionBuilder.get(URL); assertEquals(AnsibleResultCodes.IO_EXCEPTION.getValue(), result.getStatusCode()); } + + @Test + public void testClose() throws IOException + { + connectionBuilder.close(); + } } -- cgit 1.2.3-korg