summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-08-30 12:28:29 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-08-30 12:29:17 +0530
commit6dd7fd8b3a96e15c121d6e4a5e7b5743afb1b99b (patch)
tree4ecb6a228867b3afa494b76ddaa0d7275d0fa648 /main
parentaf8413e2b168187d7a1683b8b8bf9d1ab16fafbf (diff)
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 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'main')
-rw-r--r--main/src/test/java/org/onap/cli/main/OnapCliMainTest.java21
1 files changed, 0 insertions, 21 deletions
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
@@ -125,27 +125,6 @@ public class OnapCliMainTest {
}
@Test
- public void validateCommands() throws IOException, OnapCommandException {
- Map<String, String> 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<String> 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" });
boolean isInter = cli.isInteractive();