From 6dd7fd8b3a96e15c121d6e4a5e7b5743afb1b99b Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 30 Aug 2017 12:28:29 +0530 Subject: Add validation for all commands Add new project to validate the commands and optionally add required test cases CLI-35 Change-Id: I8bd437c77421a590b0e60e4aec12cc99997451a1 Signed-off-by: Kanagaraj Manickam k00365106 --- .../java/org/onap/cli/main/OnapCliMainTest.java | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'main/src/test/java/org/onap') diff --git a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java index 78278852..ff4b4362 100644 --- a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java +++ b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java @@ -124,27 +124,6 @@ public class OnapCliMainTest { this.handle(new String[] { "sample-test", "-h" }); } - @Test - public void validateCommands() throws IOException, OnapCommandException { - Map cmdSchemaMap = OnapCommandRegistrar.getRegistrar().getAllCommandToSchemaMap(); - for (String cmdName : cmdSchemaMap.keySet()) { - System.out.println( - "************************* '" + cmdSchemaMap.get(cmdName) + "' *******************************"); - this.handle(new String[] { "schema-validate", "-l", cmdSchemaMap.get(cmdName), "-i"}); - } - } - - @Test - public void commandHelpTest() throws OnapCommandException { - Set cmds = OnapCommandRegistrar.getRegistrar().listCommands(); - - for (String cmdName : cmds) { - System.out.println("************************* '" + cmdName + "' *******************************"); - this.handle(new String[] { cmdName, "-h" }); - } - - } - @Test public void interactiveTest() { cli = new OnapCli(new String[] { "-i" }); -- cgit 1.2.3-korg