From 1771f21be73fad02ad9e5736ee8d6412cb824950 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 9 May 2018 11:46:04 +0000 Subject: Fix build warnings in snmp profile Issue-ID: CLI-100 Change-Id: I1a7790d51b7773b931b9f9c0da6332725412a248 Signed-off-by: Kanagaraj Manickam k00365106 --- .../onap/cli/fw/snmp/cmd/OnapSnmpCommandTest.java | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/profiles/snmp/src/test/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommandTest.java b/profiles/snmp/src/test/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommandTest.java index 00c985d5..2fd83f9d 100644 --- a/profiles/snmp/src/test/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommandTest.java +++ b/profiles/snmp/src/test/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommandTest.java @@ -16,11 +16,22 @@ package org.onap.cli.fw.snmp.cmd; +import static org.junit.Assert.assertEquals; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + import mockit.Mock; import mockit.MockUp; -import org.junit.*; + +import org.junit.Test; import org.onap.cli.fw.error.OnapCommandException; -import org.onap.cli.fw.error.OnapCommandInvalidParameterValue; import org.onap.cli.fw.input.OnapCommandParameter; import org.onap.cli.fw.input.OnapCommandParameterType; import org.onap.cli.fw.output.OnapCommandResult; @@ -34,10 +45,6 @@ import org.snmp4j.smi.OID; import org.snmp4j.smi.OctetString; import org.snmp4j.smi.VariableBinding; -import java.io.IOException; -import java.util.*; - -import static org.junit.Assert.*; public class OnapSnmpCommandTest { @@ -91,7 +98,6 @@ public class OnapSnmpCommandTest { snmpCmd.run(); OnapCommandResult result = snmpCmd.getResult(); - assertEquals("snmp", result.getRecordsMap().get("system-desc") - .getValues().get(0)); + assertEquals("snmp", result.getRecordsMap().get("system-desc").getValues().get(0)); } } \ No newline at end of file -- cgit 1.2.3-korg