From 9c5cdc09cb164e9fa12b174f590053fe90e1535b Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 11 Oct 2017 10:51:52 +0530 Subject: Add UT for validating using moco CLI-2 Change-Id: Idcccea2383799631e9ab5aee30e5b9ea779313de Signed-off-by: Kanagaraj Manickam k00365106 --- .../test/java/org/onap/cli/validation/OnapCliMainTest.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'validation/src/test/java') 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 836505d7..779978f9 100644 --- a/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java +++ b/validation/src/test/java/org/onap/cli/validation/OnapCliMainTest.java @@ -17,16 +17,14 @@ package org.onap.cli.validation; import java.io.IOException; -import java.util.Map; -import java.util.Set; import org.aspectj.lang.annotation.After; import org.junit.Test; import org.onap.cli.fw.OnapCommandRegistrar; import org.onap.cli.fw.error.OnapCommandException; import org.onap.cli.fw.utils.ExternalSchema; -import org.onap.cli.fw.utils.OnapCommandUtils; import org.onap.cli.main.OnapCli; +import org.onap.cli.moco.OnapCommandHttpMocoServer; public class OnapCliMainTest { @@ -50,7 +48,7 @@ public class OnapCliMainTest { } @Test - public void validateCommands() throws IOException, OnapCommandException { + public void validateCommandSchemas() throws IOException, OnapCommandException { OnapCommandRegistrar.getRegistrar().setEnabledProductVersion("cli-1.0"); for (ExternalSchema sch : OnapCommandRegistrar.getRegistrar().listCommandInfo()) { System.out.println( @@ -76,4 +74,10 @@ public class OnapCliMainTest { } } + @Test + public void validateCommands() throws OnapCommandException { + OnapCommandHttpMocoServer server = new OnapCommandHttpMocoServer(); + server.verifySamples(); + } + } -- cgit 1.2.3-korg