From 2879d63dbeecdd485394f9f35df0578040b8cf2c Mon Sep 17 00:00:00 2001 From: xuegao Date: Thu, 18 Jun 2020 11:59:43 +0200 Subject: Improve test coverage Adding more tests to improve test coverage. Issue-ID: SDC-3129 Signed-off-by: xuegao Change-Id: I23a717bfb6a0004e58ff3ca37d6dd877a956931e Signed-off-by: xuegao --- .../org/onap/config/type/ConfigurationQuery.java | 37 +++------------------- 1 file changed, 4 insertions(+), 33 deletions(-) (limited to 'common/onap-common-configuration-management/onap-configuration-management-core/src') diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java index ce0657240a..e0542369c4 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java @@ -17,7 +17,11 @@ package org.onap.config.type; import org.onap.config.Constants; +import lombok.Getter; +import lombok.ToString; +@ToString +@Getter public class ConfigurationQuery { private String tenant = Constants.DEFAULT_TENANT; @@ -75,37 +79,4 @@ public class ConfigurationQuery { public String getNamespace() { return namespace.toUpperCase(); } - - public String getKey() { - return key; - } - - public boolean isFallback() { - return fallback; - } - - public boolean isNodeSpecific() { - return nodeSpecific; - } - - public boolean isExternalLookup() { - return externalLookup; - } - - public boolean isLatest() { - return latest; - } - - @Override - public String toString() { - return "ConfigurationQuery{" + - "tenant='" + tenant + '\'' + - ", namespace='" + namespace + '\'' + - ", key='" + key + '\'' + - ", fallback=" + fallback + - ", externalLookup=" + externalLookup + - ", latest=" + latest + - ", nodeSpecific=" + nodeSpecific + - '}'; - } } -- cgit 1.2.3-korg