From eedfe81450adb3e987f4f930a17aec4e40e8f48d Mon Sep 17 00:00:00 2001 From: Lukasz Muszkieta Date: Thu, 12 Jul 2018 17:23:33 +0200 Subject: add junit for VfModuleCustomizationToVduMapper Change-Id: Ia63f7ababdb7f51a89da4713ae29c1297e7bd746 Issue-ID: SO-718 Signed-off-by: Lukasz Muszkieta --- .../org/openecomp/mso/adapters/vdu/VduArtifact.java | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'adapters/mso-adapter-utils/src/main/java/org') diff --git a/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/adapters/vdu/VduArtifact.java b/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/adapters/vdu/VduArtifact.java index 394d13d8d2..7696f3bc24 100644 --- a/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/adapters/vdu/VduArtifact.java +++ b/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/adapters/vdu/VduArtifact.java @@ -20,6 +20,9 @@ package org.openecomp.mso.adapters.vdu; +import java.util.Arrays; +import java.util.Objects; + public class VduArtifact { // Enumerate the types of artifacts permitted. This may need to be a variable string @@ -59,6 +62,19 @@ public class VduArtifact { } public void setType(ArtifactType type) { this.type = type; - } - + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VduArtifact that = (VduArtifact) o; + return Objects.equals(name, that.name) && + Arrays.equals(content, that.content) && + type == that.type; + } } \ No newline at end of file -- cgit 1.2.3-korg