From 77680c6f9d99adcf5c6a97380043f1d86b0d46fa Mon Sep 17 00:00:00 2001 From: xuegao Date: Mon, 15 Mar 2021 12:21:51 +0100 Subject: Improve test coverage Use Lombok annotations to improve test coverage. Issue-ID: SDC-3428 Signed-off-by: xuegao Change-Id: I120d5f472e3bf8b1e417ec817c91bde33b0c901e --- .../dao/type/ApplicationConfigEntity.java | 57 ++++------------------ 1 file changed, 9 insertions(+), 48 deletions(-) (limited to 'openecomp-be') 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 - * - * Definition of mapped classes. - */ - 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; - } - } -- cgit 1.2.3-korg