diff options
Diffstat (limited to 'profiles/http/src/test/java')
-rw-r--r-- | profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java b/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java index ddf30ba7..0bf073e7 100644 --- a/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java +++ b/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java @@ -23,7 +23,9 @@ import java.util.List; import org.junit.Test; import org.onap.cli.fw.cmd.OnapCommand; import org.onap.cli.fw.error.OnapCommandException; +import org.onap.cli.fw.registrar.OnapCommandRegistrar; import org.onap.cli.fw.schema.OnapCommandSchemaLoader; +import org.onap.cli.main.OnapCli; public class ValidateSchemaTest { @Test @@ -36,4 +38,13 @@ public class ValidateSchemaTest { List<String> errorList1 = OnapCommandSchemaLoader.loadSchema(cmd1, "schema-validate-http.yaml", true, true); assertTrue(errorList1.size() > 0); } + + @Test + public void testVerify() throws OnapCommandException { + OnapCommandRegistrar.getRegistrar().setEnabledProductVersion("open-cli"); + OnapCli onapCli = new OnapCli(new String[]{"sample-test-verify", "--verify"}); + onapCli.handle(); + + //mrkanag though it pass, when ran alone, It fails during mvn test phase, check it + } } |