aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
diff options
context:
space:
mode:
authorTomasz Golabek <tomasz.golabek@nokia.com>2019-04-07 15:05:51 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-04-08 08:41:17 +0000
commit67437109d8df88ff494f8bd14faef44b7f5a2dee (patch)
tree9836911166cff8df40b4c278d9dfd9d13206e8e4 /catalog-be/src/main
parenta8e3bf27eec7832a89522b776f08dda8dc0985d2 (diff)
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 <tomasz.golabek@nokia.com>
Diffstat (limited to 'catalog-be/src/main')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactAccessList.java8
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfo.java6
2 files changed, 11 insertions, 3 deletions
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<ArtifactAccessInfo> artifacts;
+
public ArtifactAccessList(List<ArtifactAccessInfo> artifacts) {
this.artifacts = artifacts;
}
- private List<ArtifactAccessInfo> artifacts;
-
public List<ArtifactAccessInfo> 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() {