aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-31 16:31:48 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-31 16:31:48 +0530
commitcb950867e0fa7da66a44295720efa2bfa030f1ac (patch)
tree2f45544baa0c4f41cc63ae6e492c3c0ec49cefe9
parentd619f9e7837f8ee0cfc53854b74b1ff45a99619b (diff)
Fix onap doc generation to logs serial no
CLI-57 Change-Id: Ie56edf2c52778341a680e499587898a35623ac6f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java5
-rw-r--r--validate/validation/pom.xml2
-rw-r--r--validate/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java3
3 files changed, 3 insertions, 7 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java b/framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java
index e26a29af..28b2f9bf 100644
--- a/framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java
+++ b/framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java
@@ -42,8 +42,6 @@ import org.onap.cli.fw.output.PrintDirection;
import org.onap.cli.fw.output.ResultType;
import org.onap.cli.fw.utils.ExternalSchema;
import org.onap.cli.fw.utils.OnapCommandUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
* Onap Command registrar provides a common place, where every command would get registered automatically when its
@@ -51,9 +49,6 @@ import org.slf4j.LoggerFactory;
*
*/
public class OnapCommandRegistrar {
-
- private static Logger LOG = LoggerFactory.getLogger(OnapCommandRegistrar.class);
-
private Map<String, Class<? extends OnapCommand>> registry = new HashMap<>();
private Set<String> availableProductVersions = new HashSet<>();
diff --git a/validate/validation/pom.xml b/validate/validation/pom.xml
index 618074f6..1232ab1f 100644
--- a/validate/validation/pom.xml
+++ b/validate/validation/pom.xml
@@ -28,7 +28,7 @@
</parent>
<artifactId>cli-validation</artifactId>
- <name>cli/validation</name>
+ <name>cli/validate/validation</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
diff --git a/validate/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java b/validate/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java
index 779978f9..cfccef62 100644
--- a/validate/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java
+++ b/validate/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java
@@ -63,9 +63,10 @@ public class OnapCliMainTest {
OnapCommandRegistrar.getRegistrar().setEnabledProductVersion(version);
System.out.println(version);
System.out.println("==========================\n\n");
+ int i = 1;
for (ExternalSchema sch : OnapCommandRegistrar.getRegistrar().listCommandInfo()) {
if (sch.getCmdVersion().equals(version)) {
- System.out.println(sch.getCmdName());
+ System.out.println("[" + i++ + "] " + sch.getCmdName());
System.out.println("-----------------------------------------------\n\n");
this.handle(new String[] { sch.getCmdName(), "-h"});
System.out.println("\n");