aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/test/java/org
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2022-04-12 04:08:18 +0000
committerGerrit Code Review <gerrit@onap.org>2022-04-12 04:08:18 +0000
commitf7101c4f3327c54c916735e4848b2850b7a739b4 (patch)
tree39880d3f417d1b00f01bd4cf99e0508ff4d66df1 /main/src/test/java/org
parent37691aa7b93c2e49875a74f066355e25ae856891 (diff)
parent18b5e8e53b6c111b13f2387eab4e501973f3b1a6 (diff)
Merge "Removed unnecessary assertions"
Diffstat (limited to 'main/src/test/java/org')
-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());
}