diff options
author | wejs <maciej.wejs@nokia.com> | 2018-01-25 12:41:33 +0100 |
---|---|---|
committer | wejs <maciej.wejs@nokia.com> | 2018-02-01 12:18:18 +0100 |
commit | 46150f8ef3cf60716cb5d02eab8e595052c628f5 (patch) | |
tree | d2e309bd164e1445a3749c19d3233486714973d6 /appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test | |
parent | 03f48c7ea7de11d7c7d0933a0438afa4280e3bf7 (diff) |
Sonar fixes in "appc-netconf-adapter-bundle"
Change-Id: Ib5842a5f43c9437fee464e9a35e3120a11d1c6b1
Issue-ID: APPC-494
Signed-off-by: wejs <maciej.wejs@nokia.com>
Diffstat (limited to 'appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test')
6 files changed, 15 insertions, 26 deletions
diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/internal/TestNetconfAdapter.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/internal/TestNetconfAdapter.java index cb20cbdb5..1d1c8f142 100644 --- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/internal/TestNetconfAdapter.java +++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/internal/TestNetconfAdapter.java @@ -26,7 +26,6 @@ package org.onap.appc.adapter.netconf.internal; import org.junit.Assert; import org.junit.Test; -import org.onap.appc.adapter.netconf.internal.NetconfAdapter; import java.io.IOException; import java.io.PipedInputStream; diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestGetRunningConfig.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestGetRunningConfig.java index b559bc749..09281f44a 100644 --- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestGetRunningConfig.java +++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestGetRunningConfig.java @@ -24,13 +24,11 @@ package org.onap.appc.adapter.netconf.jsch; +import org.onap.appc.adapter.netconf.NetconfConnectionDetails; + import java.util.Collections; import java.util.List; -import org.onap.appc.adapter.netconf.NetconfConnectionDetails; -import org.onap.appc.adapter.netconf.jsch.NetconfClientJsch; -import org.onap.appc.exceptions.APPCException; - public class TestGetRunningConfig { private static final String HOST = "192.168.1.2"; @@ -39,7 +37,7 @@ public class TestGetRunningConfig { private static final int PORT = 830; private static final List<String> CAPABILITIES = Collections.singletonList("<capability>urn:org:onap:appc:capability:1.1.0</capability>"); - public static void main(String[] args) throws APPCException { + public static void main(String[] args) { try { NetconfConnectionDetails connectionDetails = new NetconfConnectionDetails(); connectionDetails.setHost(HOST); diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfig.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfig.java index 809625333..8750473d1 100644 --- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfig.java +++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfig.java @@ -24,13 +24,11 @@ package org.onap.appc.adapter.netconf.jsch; +import org.onap.appc.adapter.netconf.NetconfConnectionDetails; + import java.util.Collections; import java.util.List; -import org.onap.appc.adapter.netconf.NetconfConnectionDetails; -import org.onap.appc.adapter.netconf.jsch.NetconfClientJsch; -import org.onap.appc.exceptions.APPCException; - public class TestModifyConfig { private static final String HOST = "192.168.1.2"; @@ -64,7 +62,7 @@ public class TestModifyConfig { " </edit-config>\n" + "</rpc>"; - public static void main(String[] args) throws APPCException { + public static void main(String[] args) { try { NetconfConnectionDetails connectionDetails = new NetconfConnectionDetails(); connectionDetails.setHost(HOST); diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfigMock.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfigMock.java index 915721d51..31dee091c 100644 --- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfigMock.java +++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfigMock.java @@ -24,13 +24,11 @@ package org.onap.appc.adapter.netconf.jsch; +import org.onap.appc.adapter.netconf.NetconfConnectionDetails; + import java.util.Collections; import java.util.List; -import org.onap.appc.adapter.netconf.NetconfConnectionDetails; -import org.onap.appc.adapter.netconf.jsch.NetconfClientJsch; -import org.onap.appc.exceptions.APPCException; - public class TestModifyConfigMock { private static final String HOST = "192.168.1.2"; @@ -64,7 +62,7 @@ public class TestModifyConfigMock { " </edit-config>\n" + "</rpc>"; - public static void main(String[] args) throws APPCException { + public static void main(String[] args) { try { NetconfConnectionDetails connectionDetails = new NetconfConnectionDetails(); connectionDetails.setHost(HOST); diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfigRouterMock.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfigRouterMock.java index 83e62bc9f..1001c012f 100644 --- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfigRouterMock.java +++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestModifyConfigRouterMock.java @@ -24,13 +24,11 @@ package org.onap.appc.adapter.netconf.jsch; +import org.onap.appc.adapter.netconf.NetconfConnectionDetails; + import java.util.Collections; import java.util.List; -import org.onap.appc.adapter.netconf.NetconfConnectionDetails; -import org.onap.appc.adapter.netconf.jsch.NetconfClientJsch; -import org.onap.appc.exceptions.APPCException; - public class TestModifyConfigRouterMock { private static final String HOST = "10.147.27.50"; // yuma netconf simulator @@ -66,7 +64,7 @@ public class TestModifyConfigRouterMock { " </edit-config>\n" + "</rpc>\n"; - public static void main(String[] args) throws APPCException { + public static void main(String[] args) { try { NetconfConnectionDetails connectionDetails = new NetconfConnectionDetails(); connectionDetails.setHost(HOST); diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestOperationalStates.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestOperationalStates.java index 263dd5a8f..a8c9e28b4 100644 --- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestOperationalStates.java +++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/test/java/org/onap/appc/adapter/netconf/jsch/TestOperationalStates.java @@ -24,13 +24,11 @@ package org.onap.appc.adapter.netconf.jsch; +import org.onap.appc.adapter.netconf.NetconfConnectionDetails; + import java.util.Collections; import java.util.List; -import org.onap.appc.adapter.netconf.NetconfConnectionDetails; -import org.onap.appc.adapter.netconf.jsch.NetconfClientJsch; -import org.onap.appc.exceptions.APPCException; - public class TestOperationalStates { private static final String HOST = "192.168.1.2"; @@ -62,7 +60,7 @@ public class TestOperationalStates { " </get>\n" + "</rpc>"; - public static void main(String[] args) throws APPCException { + public static void main(String[] args) { try { NetconfConnectionDetails connectionDetails = new NetconfConnectionDetails(); connectionDetails.setHost(HOST); |