From 5a0dadc2c7439719142db3c7e2200d12face4b45 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 11 Aug 2017 10:41:29 +0530 Subject: Migrate msb-url into host-url CLI framework is being enhanced to support different service mode like direct and catalog and msb term is verfy specific to catalog mode. so its migrated to move to generic format CLI-29 Change-Id: I93f8354e2f32f7cae1660168ce403c76cca0587f Signed-off-by: Kanagaraj Manickam k00365106 --- .../test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main/src/test/java/org') diff --git a/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java b/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java index c7fb7985..8870029b 100644 --- a/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java +++ b/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java @@ -42,8 +42,8 @@ public class OnapCliUtilsTest { param2.setName("onap-password"); param2.setParameterType(ParameterType.STRING); OnapCommandParameter param3 = new OnapCommandParameter(); - param3.setLongOption("msb-url"); - param3.setName("msb-url"); + param3.setLongOption("host-url"); + param3.setName("host-url"); param3.setParameterType(ParameterType.STRING); OnapCommandParameter param4 = new OnapCommandParameter(); param4.setLongOption("string-param"); @@ -62,13 +62,13 @@ public class OnapCliUtilsTest { paramslist.add(param5); String[] args = new String[] { "sample-create", "--onap-username", "admin", "--onap-password", "123", - "--msb-url", "a@b.com", "--string-param", "blah", "--long-opt", "10" }; + "--host-url", "a@b.com", "--string-param", "blah", "--long-opt", "10" }; OnapCliUtils.populateParams(paramslist, Arrays.asList(args)); List expectedList = Arrays.asList(args); Assert.assertEquals("onap-username", expectedList.get(2), param1.getValue()); Assert.assertEquals("onap-password", expectedList.get(4), param2.getValue()); - Assert.assertEquals("msb-url", expectedList.get(6), param3.getValue()); + Assert.assertEquals("host-url", expectedList.get(6), param3.getValue()); Assert.assertEquals("string-param", expectedList.get(8), param4.getValue()); Assert.assertEquals("long-opt", expectedList.get(10), param5.getValue()); @@ -161,7 +161,7 @@ public class OnapCliUtilsTest { param2.setParameterType(ParameterType.STRING); OnapCommandParameter param3 = new OnapCommandParameter(); param3.setShortOption("r"); - param3.setName("msb-url"); + param3.setName("host-url"); param3.setParameterType(ParameterType.STRING); OnapCommandParameter param4 = new OnapCommandParameter(); param4.setShortOption("c"); -- cgit 1.2.3-korg