From cb950867e0fa7da66a44295720efa2bfa030f1ac Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 31 Oct 2017 16:31:48 +0530 Subject: Fix onap doc generation to logs serial no CLI-57 Change-Id: Ie56edf2c52778341a680e499587898a35623ac6f Signed-off-by: Kanagaraj Manickam k00365106 --- framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java | 5 ----- validate/validation/pom.xml | 2 +- .../src/test/java/org/onap/cli/validation/OnapCliMainTest.java | 3 ++- 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> registry = new HashMap<>(); private Set 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 @@ cli-validation - cli/validation + cli/validate/validation jar 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"); -- cgit 1.2.3-korg