summaryrefslogtreecommitdiffstats
path: root/framework/src/test
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-19 23:47:08 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-14 14:37:26 +0530
commit4c0533c9bf8d90d191991c4f4964c79b94242c10 (patch)
tree2952928ea2cfa401f9a424948f73a0cbe16ece9f /framework/src/test
parent9c2f77eed27b08e7aa3680bb9f7217dc33cab23d (diff)
Add command type to support auth and catalog
By default all commands are cmd type Issue-Id: CLI-66 Change-Id: I90567ecba00def1a1e904d2959a53c1a2cfc098b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/test')
-rw-r--r--framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java b/framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java
index cc12cfc0..f50fe567 100644
--- a/framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java
@@ -303,4 +303,11 @@ public class OnapCommandErrorTest {
assertEquals("0xc001::Failed to load profile details, error", failed.getMessage());
}
+
+ @Test
+ public void onapCommandTypeInvalidTest() {
+ OnapCommandInvalidCommandType failed = new OnapCommandInvalidCommandType("test");
+
+ assertEquals("0x3003::Command type test is invalid", failed.getMessage());
+ }
}