From 4c0533c9bf8d90d191991c4f4964c79b94242c10 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 19 Sep 2017 23:47:08 +0530 Subject: 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 --- .../src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'framework/src/test') 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()); + } } -- cgit 1.2.3-korg