aboutsummaryrefslogtreecommitdiffstats
path: root/validation/src/test
diff options
context:
space:
mode:
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");
}
}
}