aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib
diff options
context:
space:
mode:
authorxuegao <xue.gao@intl.att.com>2021-03-15 12:21:51 +0100
committerXue Gao <xue.gao@intl.att.com>2021-03-16 07:15:25 +0000
commit77680c6f9d99adcf5c6a97380043f1d86b0d46fa (patch)
treeb39552b5d1e007854177e72a06eff659c49202f4 /openecomp-be/lib/openecomp-core-lib/openecomp-config-lib
parent16e6457cf3b996f1172183b225bf987400846cc5 (diff)
Improve test coverage
Use Lombok annotations to improve test coverage. Issue-ID: SDC-3428 Signed-off-by: xuegao <xue.gao@intl.att.com> Change-Id: I120d5f472e3bf8b1e417ec817c91bde33b0c901e
Diffstat (limited to 'openecomp-be/lib/openecomp-core-lib/openecomp-config-lib')
-rw-r--r--openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/src/main/java/org/openecomp/core/utilities/applicationconfig/dao/type/ApplicationConfigEntity.java57
1 files changed, 9 insertions, 48 deletions
diff --git a/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/src/main/java/org/openecomp/core/utilities/applicationconfig/dao/type/ApplicationConfigEntity.java b/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/src/main/java/org/openecomp/core/utilities/applicationconfig/dao/type/ApplicationConfigEntity.java
index b1382b4655..64d7f1a31a 100644
--- a/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/src/main/java/org/openecomp/core/utilities/applicationconfig/dao/type/ApplicationConfigEntity.java
+++ b/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/src/main/java/org/openecomp/core/utilities/applicationconfig/dao/type/ApplicationConfigEntity.java
@@ -24,7 +24,15 @@ package org.openecomp.core.utilities.applicationconfig.dao.type;
import com.datastax.driver.mapping.annotations.ClusteringColumn;
import com.datastax.driver.mapping.annotations.PartitionKey;
import com.datastax.driver.mapping.annotations.Table;
-
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+
+@Getter
+@Setter
+@AllArgsConstructor
+@NoArgsConstructor
@Table(keyspace = "dox", name = "application_config")
public class ApplicationConfigEntity {
@@ -33,51 +41,4 @@ public class ApplicationConfigEntity {
@ClusteringColumn
private String key;
private String value;
-
- /**
- * Every entity class must have a default constructor according to
- * <a href="http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/creating/">
- * Definition of mapped classes</a>.
- */
- public ApplicationConfigEntity() {
- // Don't delete! Default constructor is required by DataStax driver
- }
-
- /**
- * Instantiates a new Application config entity.
- *
- * @param namespace the namespace
- * @param key the key
- * @param value the value
- */
- public ApplicationConfigEntity(String namespace, String key, String value) {
- this.namespace = namespace;
- this.key = key;
- this.value = value;
- }
-
- public String getNamespace() {
- return namespace;
- }
-
- public void setNamespace(String namespace) {
- this.namespace = namespace;
- }
-
- public String getKey() {
- return key;
- }
-
- public void setKey(String key) {
- this.key = key;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-
}