summaryrefslogtreecommitdiffstats
path: root/framework/src/test/java
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-14 20:42:01 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-14 20:58:48 +0530
commit72b4cdffcd021828e2b4ac00b59496b0b3bc7a26 (patch)
tree70bf182bd329ea91474e18b1471453112865f931 /framework/src/test/java
parentdd075504299c817ea899f32af2b558860da7c6fe (diff)
Migrate type long into digit
CLI-3 Change-Id: I5706963146d9575a9094aa7c24b85e1a0d8e7f80 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/test/java')
-rw-r--r--framework/src/test/java/org/onap/cli/fw/input/ParameterTypeTest.java2
-rw-r--r--framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultAttributeScopeTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/input/ParameterTypeTest.java b/framework/src/test/java/org/onap/cli/fw/input/ParameterTypeTest.java
index eef49ad8..0a5ad006 100644
--- a/framework/src/test/java/org/onap/cli/fw/input/ParameterTypeTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/input/ParameterTypeTest.java
@@ -30,7 +30,7 @@ public class ParameterTypeTest {
assertTrue(ParameterType.JSON.equals(ParameterType.get("json"))
&& ParameterType.YAML.equals(ParameterType.get("yaml"))
&& ParameterType.STRING.equals(ParameterType.get("string"))
- && ParameterType.LONG.equals(ParameterType.get("long"))
+ && ParameterType.DIGIT.equals(ParameterType.get("digit"))
&& ParameterType.URL.equals(ParameterType.get("url"))
&& ParameterType.BOOL.equals(ParameterType.get("bool"))
&& ParameterType.MAP.equals(ParameterType.get("map"))
diff --git a/framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultAttributeScopeTest.java b/framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultAttributeScopeTest.java
index ac1a6d33..d74f83a3 100644
--- a/framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultAttributeScopeTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultAttributeScopeTest.java
@@ -31,11 +31,11 @@ public class OnapCommandResultAttributeScopeTest {
att.setName("name");
att.setScope(OnapCommandResultAttributeScope.LONG);
att.setSecured(true);
- att.setType(ParameterType.LONG);
+ att.setType(ParameterType.DIGIT);
att.setValues(Collections.emptyList());
assertTrue("description".equals(att.getDescription()) && "name".equals(att.getName())
&& OnapCommandResultAttributeScope.LONG.equals(att.getScope())
- && ParameterType.LONG.equals(att.getType()) && att.getValues().isEmpty());
+ && ParameterType.DIGIT.equals(att.getType()) && att.getValues().isEmpty());
}
}