summaryrefslogtreecommitdiffstats
path: root/framework/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/test/java')
-rw-r--r--framework/src/test/java/org/onap/cli/cmd/sample/OnapCommandSampleTest.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/framework/src/test/java/org/onap/cli/cmd/sample/OnapCommandSampleTest.java b/framework/src/test/java/org/onap/cli/cmd/sample/OnapCommandSampleTest.java
index a83cda52..4009dcb0 100644
--- a/framework/src/test/java/org/onap/cli/cmd/sample/OnapCommandSampleTest.java
+++ b/framework/src/test/java/org/onap/cli/cmd/sample/OnapCommandSampleTest.java
@@ -45,11 +45,11 @@ public class OnapCommandSampleTest {
Set<OnapCommandParameter> parameters = new HashSet();
OnapCommandParameter v = new OnapCommandParameter();
v.setName(OnapCommandConstants.DEFAULT_PARAMETER_VERSION);
- v.setValue("true");
+ v.setValue(true);
parameters.add(v);
OnapCommandParameter h = new OnapCommandParameter();
h.setName(OnapCommandConstants.DEFAULT_PARAMETER_HELP);
- h.setValue("false");
+ h.setValue(false);
parameters.add(h);
sample.setParameters(parameters);
sample.execute();
@@ -64,7 +64,7 @@ public class OnapCommandSampleTest {
Set<OnapCommandParameter> parameters = new HashSet();
OnapCommandParameter v = new OnapCommandParameter();
v.setName(OnapCommandConstants.DEFAULT_PARAMETER_HELP);
- v.setValue("true");
+ v.setValue(true);
v.setParameterType(OnapCommandParameterType.BOOL);
parameters.add(v);
sample.setParameters(parameters);
@@ -81,11 +81,11 @@ public class OnapCommandSampleTest {
Set<OnapCommandParameter> parameters = new HashSet();
OnapCommandParameter v = new OnapCommandParameter();
v.setName(OnapCommandConstants.DEFAULT_PARAMETER_VERSION);
- v.setValue("false");
+ v.setValue(false);
parameters.add(v);
OnapCommandParameter h = new OnapCommandParameter();
h.setName(OnapCommandConstants.DEFAULT_PARAMETER_HELP);
- h.setValue("false");
+ h.setValue(false);
parameters.add(h);
OnapCommandParameter f = new OnapCommandParameter();
f.setName(OnapCommandConstants.DEFAULT_PARAMETER_OUTPUT_FORMAT);
@@ -93,15 +93,15 @@ public class OnapCommandSampleTest {
parameters.add(f);
OnapCommandParameter l = new OnapCommandParameter();
l.setName(OnapCommandConstants.DEFAULT_PARAMETER_OUTPUT_ATTR_LONG);
- l.setValue("true");
+ l.setValue(true);
parameters.add(l);
OnapCommandParameter t = new OnapCommandParameter();
t.setName(OnapCommandConstants.DEFAULT_PARAMETER_OUTPUT_NO_TITLE);
- t.setValue("true");
+ t.setValue(true);
parameters.add(t);
OnapCommandParameter d = new OnapCommandParameter();
d.setName(OnapCommandConstants.DEFAULT_PARAMETER_DEBUG);
- d.setValue("true");
+ d.setValue(true);
parameters.add(d);
sample.setParameters(parameters);
@@ -128,11 +128,11 @@ public class OnapCommandSampleTest {
Set<OnapCommandParameter> parameters = new HashSet();
OnapCommandParameter v = new OnapCommandParameter();
v.setName(OnapCommandConstants.DEFAULT_PARAMETER_VERSION);
- v.setValue("false");
+ v.setValue(false);
parameters.add(v);
OnapCommandParameter h = new OnapCommandParameter();
h.setName(OnapCommandConstants.DEFAULT_PARAMETER_HELP);
- h.setValue("false");
+ h.setValue(false);
parameters.add(h);
OnapCommandParameter f = new OnapCommandParameter();
f.setName(OnapCommandConstants.DEFAULT_PARAMETER_OUTPUT_FORMAT);
@@ -140,15 +140,15 @@ public class OnapCommandSampleTest {
parameters.add(f);
OnapCommandParameter l = new OnapCommandParameter();
l.setName(OnapCommandConstants.DEFAULT_PARAMETER_OUTPUT_ATTR_LONG);
- l.setValue("true");
+ l.setValue(true);
parameters.add(l);
OnapCommandParameter t = new OnapCommandParameter();
t.setName(OnapCommandConstants.DEFAULT_PARAMETER_OUTPUT_NO_TITLE);
- t.setValue("true");
+ t.setValue(true);
parameters.add(t);
OnapCommandParameter d = new OnapCommandParameter();
d.setName(OnapCommandConstants.DEFAULT_PARAMETER_DEBUG);
- d.setValue("true");
+ d.setValue(true);
parameters.add(d);
sample.setParameters(parameters);
sample.execute();