aboutsummaryrefslogtreecommitdiffstats
path: root/validation/src/test
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-26 11:30:31 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-26 11:35:12 +0530
commitbaf26eff73588b236d5c1261b462d76f8998838b (patch)
tree619604c8eef8c39c67765ef6a10fc3cd9815423b /validation/src/test
parentcd0acb805f22c079cb5b94961a73200b1acac780 (diff)
Add commands help generation code
CLI-34 Change-Id: Ic71c0a0d79ad4e1e1be74d5f98c3e1c40f300e2a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'validation/src/test')
-rw-r--r--validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java b/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java
index f89e265d..836505d7 100644
--- a/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java
+++ b/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java
@@ -60,14 +60,17 @@ public class OnapCliMainTest {
}
@Test
- public void commandHelpTest() throws OnapCommandException {
+ public void usageReadTheDocsTest() throws OnapCommandException {
for (String version: OnapCommandRegistrar.getRegistrar().getAvailableProductVersions()) {
OnapCommandRegistrar.getRegistrar().setEnabledProductVersion(version);
+ System.out.println(version);
+ System.out.println("==========================\n\n");
for (ExternalSchema sch : OnapCommandRegistrar.getRegistrar().listCommandInfo()) {
if (sch.getCmdVersion().equals(version)) {
- System.out.println(
- "************************* help '" + sch.getCmdName() + "' *******************************");
+ System.out.println(sch.getCmdName());
+ System.out.println("-----------------------------------------------\n\n");
this.handle(new String[] { sch.getCmdName(), "-h"});
+ System.out.println("\n");
}
}
}