summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src
diff options
context:
space:
mode:
authorxuegao <xue.gao@intl.att.com>2021-03-15 14:10:57 +0100
committerChristophe Closset <christophe.closset@intl.att.com>2021-03-16 13:31:41 +0000
commitc094ebe82e4e9797c4ee20c5e14bf293f7c193c4 (patch)
tree779d5308199edf97643a9569676bb22b41905980 /catalog-dao/src
parent1da764ea13793535597dc6518b5e953393e9dbe0 (diff)
Improve test coverage
Use Lombok annotations to improve test coverage. Issue-ID: SDC-3428 Change-Id: I78a9fa6171ba26e431b5e587b24548322c464ecc Signed-off-by: xuegao <xue.gao@intl.att.com>
Diffstat (limited to 'catalog-dao/src')
-rw-r--r--catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java25
1 files changed, 6 insertions, 19 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java
index 28a5d3569a..2b79c2d79f 100644
--- a/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java
+++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java
@@ -24,9 +24,14 @@ import com.datastax.driver.mapping.annotations.Column;
import com.datastax.driver.mapping.annotations.PartitionKey;
import com.datastax.driver.mapping.annotations.Table;
import com.datastax.driver.mapping.annotations.Transient;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
import java.nio.ByteBuffer;
+@Getter
+@NoArgsConstructor
@Table(keyspace = "sdcartifact", name = "resources")
public class DAOArtifactData {
public static final String RRESOURCE_ID_FIELD = "resourceId";
@@ -39,6 +44,7 @@ public class DAOArtifactData {
@PartitionKey
@Column(name = "id")
+ @Setter
private String id;
/*
@@ -48,11 +54,6 @@ public class DAOArtifactData {
@Column
private ByteBuffer data;
- // private byte[] data;
-
- public DAOArtifactData() {
-
- }
public DAOArtifactData(String id) {
@@ -85,24 +86,10 @@ public class DAOArtifactData {
}
}
- public ByteBuffer getData() {
- // return data;
- return data;
- }
-
public void setData(ByteBuffer data) {
if (data != null) {
// this.data = data.clone();
this.data = data.duplicate();
}
}
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
}