Improve test coverage 94/109294/8
authorxuegao <xg353y@intl.att.com>
Thu, 18 Jun 2020 09:59:43 +0000 (11:59 +0200)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Tue, 23 Jun 2020 08:02:08 +0000 (08:02 +0000)
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>
common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java

index ce06572..e054236 100644 (file)
 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 +
-                '}';
-    }
 }