aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");