aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorsharath reddy <bs.reddy@huawei.com>2022-04-08 13:57:10 +0530
committersharath reddy <bs.reddy@huawei.com>2022-04-08 13:58:14 +0530
commit18b5e8e53b6c111b13f2387eab4e501973f3b1a6 (patch)
tree8392abd0cc2dabe03cb210eb6ae9c7a924c9c169 /main/src
parent3c5930e0d61f3f0b0eec57c20a2b82a6838ad70e (diff)
Removed unnecessary assertions
Issue-ID: CLI-442 report: tested weather-report, execution-list sonar issue link: https://sonarcloud.io/project/issues?resolved=false&types=CODE_SMELL&id=onap_cli&open=AXl7xG7awWvHrAKRLY55 Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: I28084d9f2c9c24bbb596446dd2d7a4cd52659f7a
Diffstat (limited to 'main/src')
-rw-r--r--main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java b/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java
index 05249898..e99bbfc1 100644
--- a/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java
+++ b/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java
@@ -281,8 +281,6 @@ public class OnapCliUtilsTest {
param1.setParameterType(OnapCommandParameterType.MAP);
OnapCliArgsParser.populateParams(paramslist,
Arrays.asList("show", "--map", "param1=value1", "--map", "param2"));
- Assert.assertEquals("{\"param1\":\"value1\",\"param2\"}",
- paramslist.iterator().next().getValue().toString());
}
@Test(expected = OnapCliInvalidArgument.class)
@@ -296,8 +294,6 @@ public class OnapCliUtilsTest {
param1.setParameterType(OnapCommandParameterType.MAP);
OnapCliArgsParser.populateParams(paramslist,
Arrays.asList("show", "-o", "param1=value1", "-o", "param2"));
- Assert.assertEquals("{\"param1\":\"value1\",\"param2\"}",
- paramslist.iterator().next().getValue().toString());
}
@Test(expected = OnapCliInvalidArgument.class)
@@ -313,8 +309,6 @@ public class OnapCliUtilsTest {
paramargs.setParameterType(OnapCommandParameterType.STRING);
OnapCliArgsParser.populateParams(paramslist, Arrays.asList(args));
List<String> expectedList = Arrays.asList(args);
- Assert.assertEquals("positional-args",
- expectedList.get(1), paramslist.iterator().next().getValue());
}
@Test(expected = OnapCliInvalidArgument.class)
@@ -328,8 +322,6 @@ public class OnapCliUtilsTest {
boolparam.setParameterType(OnapCommandParameterType.BOOL);
OnapCliArgsParser.populateParams(paramslist, Arrays.asList(args));
- List<String> expectedList = Arrays.asList(args);
- Assert.assertEquals("true", paramslist.iterator().next().getValue());
}
@Test(expected = OnapCliInvalidArgument.class)
@@ -343,8 +335,6 @@ public class OnapCliUtilsTest {
boolparam.setParameterType(OnapCommandParameterType.BOOL);
OnapCliArgsParser.populateParams(paramslist, Arrays.asList(args));
- List<String> expectedList = Arrays.asList(args);
- Assert.assertEquals("true", paramslist.iterator().next().getValue());
}
@Test(expected = OnapCliArgumentValueMissing.class)
@@ -360,8 +350,6 @@ public class OnapCliUtilsTest {
"file:" + resourcesDirectory, "--json-param" };
jsonparam.setParameterType(OnapCommandParameterType.JSON);
OnapCliArgsParser.populateParams(paramslist, Arrays.asList(args));
- List<String> expectedList = Arrays.asList(args);
- Assert.assertEquals("--json-param", paramslist.iterator().next().getValue());
}
@@ -376,8 +364,6 @@ public class OnapCliUtilsTest {
String[] args = new String[] { "-j", "file:" + resourcesDirectory, "-j" };
jsonparam.setParameterType(OnapCommandParameterType.JSON);
OnapCliArgsParser.populateParams(paramslist, Arrays.asList(args));
- List<String> expectedList = Arrays.asList(args);
- Assert.assertEquals("--json-param", paramslist.iterator().next().getValue());
}