From a96cd9cbb9b23f4b7ad4e051a5dad7602ac967f0 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Sat, 7 Oct 2017 23:23:05 +0530 Subject: Ignore invalid schema while discovering schema Issue-Id: CLI-66 Change-Id: I17a367c9277a264b2d3828007af9b42592484ff1 Signed-off-by: Kanagaraj Manickam k00365106 --- .../onap/cli/fw/utils/OnapCommandUtilsTest.java | 41 ---------------------- 1 file changed, 41 deletions(-) (limited to 'framework/src/test') diff --git a/framework/src/test/java/org/onap/cli/fw/utils/OnapCommandUtilsTest.java b/framework/src/test/java/org/onap/cli/fw/utils/OnapCommandUtilsTest.java index 43883ce6..e874dc96 100644 --- a/framework/src/test/java/org/onap/cli/fw/utils/OnapCommandUtilsTest.java +++ b/framework/src/test/java/org/onap/cli/fw/utils/OnapCommandUtilsTest.java @@ -380,47 +380,6 @@ public class OnapCommandUtilsTest { input1 = OnapCommandUtils.populateOutputs(params, output); } - @Test(expected = OnapCommandException.class) - public void zendExceptionTest1() throws OnapCommandException { - - mockExternalResources(); - OnapCommandUtils.loadSchema(new OnapSwaggerBasedCommandSample(), "schemaName"); - } - - @Test(expected = OnapCommandException.class) - public void zendExceptionTest2() throws OnapCommandException { - - mockExternalResources(); - OnapCommandUtils.loadSchema(new OnapHttpCommandSample(), "schemaName", false, false); - } - - @Test(expected = OnapCommandException.class) - public void zendExceptionTest3() throws OnapCommandException { - - mockExternalResources(); - OnapCommandUtils.validateSchemaVersion("schemaName", "version"); - } - - @Test(expected = OnapCommandException.class) - public void zendExceptionTest4() throws OnapCommandException { - - mockExternalResources(); - OnapCommandUtils.discoverOrLoadSchemas(); - } - - @Test(expected = OnapCommandException.class) - public void zendExceptionTest5() throws OnapCommandException { - - mockExternalResources(); - OnapCommandUtils.discoverSchemas(); - } - - @Test(expected = OnapCommandException.class) - public void zendExceptionTest6() throws OnapCommandException { - - mockExternalResources(); - OnapCommandUtils.persistSchemaInfo(new ArrayList()); - } @Test(expected = OnapCommandHelpFailed.class) public void zendExceptionHelpTest1() throws OnapCommandException { -- cgit 1.2.3-korg