aboutsummaryrefslogtreecommitdiffstats
path: root/common/onap-common-configuration-management/onap-configuration-management-core/src
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2020-06-18 11:59:43 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-06-23 08:02:08 +0000
commit2879d63dbeecdd485394f9f35df0578040b8cf2c (patch)
tree3ab65c999f85ec22b479126c2a920b8b79c739c3 /common/onap-common-configuration-management/onap-configuration-management-core/src
parent360884a24df3f22abc9533130c5de2d1673528f8 (diff)
Improve test coverage
Adding more tests to improve test coverage. Issue-ID: SDC-3129 Signed-off-by: xuegao <xg353y@intl.att.com> Change-Id: I23a717bfb6a0004e58ff3ca37d6dd877a956931e Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'common/onap-common-configuration-management/onap-configuration-management-core/src')
-rw-r--r--common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java37
1 files changed, 4 insertions, 33 deletions
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 +
- '}';
- }
}