From 72b4cdffcd021828e2b4ac00b59496b0b3bc7a26 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 14 Sep 2017 20:42:01 +0530 Subject: Migrate type long into digit CLI-3 Change-Id: I5706963146d9575a9094aa7c24b85e1a0d8e7f80 Signed-off-by: Kanagaraj Manickam k00365106 --- framework/src/test/java/org/onap/cli/fw/input/ParameterTypeTest.java | 2 +- .../org/onap/cli/fw/output/OnapCommandResultAttributeScopeTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/src/test/java/org') 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()); } } -- cgit 1.2.3-korg