From 67437109d8df88ff494f8bd14faef44b7f5a2dee Mon Sep 17 00:00:00 2001 From: Tomasz Golabek Date: Sun, 7 Apr 2019 15:05:51 +0200 Subject: Some unit tests for catalog-be Code coverage for some classes from catalog-be increased. Some refactor made if needed. Change-Id: I33114eed03d4e176896fd803b54fb77787c34283 Issue-ID: SDC-2220 Signed-off-by: Tomasz Golabek --- .../main/java/org/openecomp/sdc/be/info/ArtifactAccessList.java | 8 ++++++-- .../java/org/openecomp/sdc/be/info/ArtifactDefinitionInfo.java | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'catalog-be/src/main') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactAccessList.java b/catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactAccessList.java index 635a082ad8..fa3a333b44 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactAccessList.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactAccessList.java @@ -16,6 +16,8 @@ * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= + * Modifications copyright (c) 2019 Nokia + * ================================================================================ */ package org.openecomp.sdc.be.info; @@ -24,12 +26,14 @@ import java.util.List; public class ArtifactAccessList { + ArtifactAccessList() {} + + private List artifacts; + public ArtifactAccessList(List artifacts) { this.artifacts = artifacts; } - private List artifacts; - public List getArtifacts() { return artifacts; } diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfo.java b/catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfo.java index bf257ee4f2..dcb5f428a8 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfo.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfo.java @@ -16,6 +16,8 @@ * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= + * Modifications copyright (c) 2019 Nokia + * ================================================================================ */ package org.openecomp.sdc.be.info; @@ -31,13 +33,15 @@ public class ArtifactDefinitionInfo { private String artifactVersion; private String artifactUUID; + ArtifactDefinitionInfo() { + } + public ArtifactDefinitionInfo(ArtifactDefinition artifactDefinition) { uniqueId = artifactDefinition.getUniqueId(); artifactName = artifactDefinition.getArtifactName(); artifactDisplayName = artifactDefinition.getArtifactDisplayName(); artifactVersion = artifactDefinition.getArtifactVersion(); artifactUUID = artifactDefinition.getArtifactUUID(); - } public String getUniqueId() { -- cgit 1.2.3-korg