aboutsummaryrefslogtreecommitdiffstats
path: root/profiles/snmp
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2018-05-10 04:31:00 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-10 04:31:00 +0000
commitb5ee2b3d2848b6896558a8976a8b38763e5c30f5 (patch)
treef90f1eadf3aa5b1a9bbae59e233c74e2ed5bb4a2 /profiles/snmp
parent578334b7122d8c022756ba1e73c7d05c4b435d98 (diff)
parent88237269b79d18a03e639377487b6df1b8a4b2fb (diff)
Merge changes I12e68fee,I1a7790d5,I2b957490,Ie711ce9f,Ieab2c892, ...
* changes: Improve param cache with entrySet Fix build warnings in snmp profile Fix the samples in utils test Remove extra line into multiple Correct the order of imports in http conn Fix assertion in http inputoutput test Update cli utils test to std compliant Fix import warnings Fix intendation warning in main test Fix import warnings Fix validation test Fix the style warings reported in registrar Remove unsed vars from Print testing Make the conditional check shorter Fix assertness in Result test Remove extra line chars Remove the build warning reported Fix OnapCommandSample with coding std.
Diffstat (limited to 'profiles/snmp')
-rw-r--r--profiles/snmp/src/test/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommandTest.java22
1 files 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