From 738df130864363bcb8b18c3b726f0587acaf74fd Mon Sep 17 00:00:00 2001 From: amitjai Date: Wed, 9 May 2018 11:20:19 +0530 Subject: Rename packages from openecomp to onap Updating classes with correct package names used in reflection. Change-Id: Ib9568b58c2b7ebd14f4cfc91cda57c44db9b377f Issue-ID: SDC-1272 Signed-off-by: amitjai --- .../test/java/org/onap/config/test/CLIFallbackAndLookupTest.java | 4 ++-- .../src/test/java/org/onap/config/test/CLITest.java | 6 +++--- .../src/test/java/org/onap/config/test/NodeSpecificCLITest.java | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'common/onap-common-configuration-management/onap-configuration-management-test') diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLIFallbackAndLookupTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLIFallbackAndLookupTest.java index f4598be0d0..1e345aee3d 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLIFallbackAndLookupTest.java +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLIFallbackAndLookupTest.java @@ -41,7 +41,7 @@ public class CLIFallbackAndLookupTest { //Verify without fallback Map input = new HashMap<>(); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("ImplClass", "org.onap.config.type.ConfigurationQuery"); input.put("tenant", TENANT); input.put("namespace", NAMESPACE); input.put("key", ConfigTestConstant.ARTIFACT_MAXSIZE); @@ -66,7 +66,7 @@ public class CLIFallbackAndLookupTest { //Verify with fallback Map fallbackInput = new HashMap<>(); - fallbackInput.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + fallbackInput.put("ImplClass", "org.onap.config.type.ConfigurationQuery"); fallbackInput.put("fallback", true); fallbackInput.put("tenant", TENANT); fallbackInput.put("namespace", NAMESPACE); diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLITest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLITest.java index 5a3f39fd16..de863efe5b 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLITest.java +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLITest.java @@ -39,7 +39,7 @@ public class CLITest { public void testCLIApi() throws Exception{ //Verify without fallback Map input = new HashMap<>(); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("ImplClass", "org.onap.config.type.ConfigurationQuery"); input.put("tenant", TENANT); input.put("namespace", NAMESPACE); input.put("key", ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH); @@ -54,7 +54,7 @@ public class CLITest { //Update maxlength - input.put("ImplClass", "org.openecomp.config.type.ConfigurationUpdate"); + input.put("ImplClass", "org.onap.config.type.ConfigurationUpdate"); input.put("value", "24"); conf.updateConfigurationValue(input); @@ -64,7 +64,7 @@ public class CLITest { //Reset value and fetch updated value again input.put("value", ""); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("ImplClass", "org.onap.config.type.ConfigurationQuery"); String updatedMaxLength = conf.getConfigurationValue(input); Assert.assertEquals("24",updatedMaxLength); diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NodeSpecificCLITest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NodeSpecificCLITest.java index 59848f1dba..41745d36ff 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NodeSpecificCLITest.java +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NodeSpecificCLITest.java @@ -35,7 +35,7 @@ public class NodeSpecificCLITest { public void testCLIApi() throws Exception{ //Verify without fallback Map input = new HashMap<>(); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("ImplClass", "org.onap.config.type.ConfigurationQuery"); input.put("namespace", NAMESPACE); input.put("key", ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH); @@ -67,7 +67,7 @@ public class NodeSpecificCLITest { conf.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new CLINodeListener()); //Update maxlength - input.put("ImplClass", "org.openecomp.config.type.ConfigurationUpdate"); + input.put("ImplClass", "org.onap.config.type.ConfigurationUpdate"); input.put("nodeOverride", true); input.put("nodeSpecific", false); input.put("value", "60"); @@ -80,7 +80,7 @@ public class NodeSpecificCLITest { //Fetch the updated nodespecific value input.put("nodeOverride", false); input.put("nodeSpecific", true); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("ImplClass", "org.onap.config.type.ConfigurationQuery"); String updatedMaxLength = conf.getConfigurationValue(input); Assert.assertEquals("60",updatedMaxLength); @@ -91,7 +91,7 @@ public class NodeSpecificCLITest { Thread.sleep(35000); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("ImplClass", "org.onap.config.type.ConfigurationQuery"); input.put("nodeOverride", false); input.put("nodeSpecific", false); System.out.println("val on other node is::"+conf.getConfigurationValue(input)); -- cgit 1.2.3-korg