diff options
author | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-01-09 11:26:59 +0000 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-01-09 14:59:38 +0000 |
commit | 8e83f8a00862c88052dcfcb17fe2b99fd8bad23e (patch) | |
tree | 35688d067bf086d2904f292ab9a56df0954d6c4c /appc-dg/appc-dg-shared/appc-dg-netconf/src/main | |
parent | 8fee66a2dc53578fd6d4a02791012bcc93806ff7 (diff) |
Test Coverage in appc-dg-netconf
Increased coverage from 22% to 97%
Issue-ID: APPC-1311
Change-Id: I631cfdb29e4c374f0f015d3a81b4918eed6894ec
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
Diffstat (limited to 'appc-dg/appc-dg-shared/appc-dg-netconf/src/main')
-rw-r--r-- | appc-dg/appc-dg-shared/appc-dg-netconf/src/main/java/org/onap/appc/dg/netconf/impl/NetconfClientPluginImpl.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/appc-dg/appc-dg-shared/appc-dg-netconf/src/main/java/org/onap/appc/dg/netconf/impl/NetconfClientPluginImpl.java b/appc-dg/appc-dg-shared/appc-dg-netconf/src/main/java/org/onap/appc/dg/netconf/impl/NetconfClientPluginImpl.java index 4aff9a8bc..7b9d5d802 100644 --- a/appc-dg/appc-dg-shared/appc-dg-netconf/src/main/java/org/onap/appc/dg/netconf/impl/NetconfClientPluginImpl.java +++ b/appc-dg/appc-dg-shared/appc-dg-netconf/src/main/java/org/onap/appc/dg/netconf/impl/NetconfClientPluginImpl.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Modifications (C) 2019 Ericsson * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -185,9 +187,7 @@ public class NetconfClientPluginImpl implements NetconfClientPlugin { NetconfClient client = null; try { - if (logger.isDebugEnabled()) { - logger.debug("Entered backup to DEVICE_INTERFACE_LOG"); - } + logger.debug("Entered backup to DEVICE_INTERFACE_LOG"); client = clientFactory.getNetconfClient(NetconfClientType.SSH); //get connection details @@ -218,9 +218,7 @@ public class NetconfClientPluginImpl implements NetconfClientPlugin { String confId = params.get("conf-id"); if ("current".equalsIgnoreCase(confId)) { try { - if (logger.isDebugEnabled()) { - logger.debug("Entered getConfig to DEVICE_INTERFACE_LOG"); - } + logger.debug("Entered getConfig to DEVICE_INTERFACE_LOG"); //get netconf client to get configuration BundleContext bctx = FrameworkUtil.getBundle(this.getClass()).getBundleContext(); ServiceReference sref = bctx.getServiceReference(NETCONF_CLIENT_FACTORY_NAME); |