aboutsummaryrefslogtreecommitdiffstats
path: root/common/onap-tosca-datatype/src/main
diff options
context:
space:
mode:
authorPiotr Darosz <piotr.darosz@nokia.com>2019-09-04 10:05:34 +0200
committerTomasz Golabek <tomasz.golabek@nokia.com>2019-09-04 10:29:46 +0000
commit51a0f7b4a6c924c42955fa93042bd154cb636a16 (patch)
treed2c2a9aa58fd00460119f429c9050bf10eb0e3df /common/onap-tosca-datatype/src/main
parentb491e6c3e97f81487d9f70e31b4e1159fe7aa9e8 (diff)
common code coverage increase
Add tests for classes in sdc.tosca.datatypes.model package Change-Id: Ifc277512d833b2501f0e594b9062d39c26565055 Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
Diffstat (limited to 'common/onap-tosca-datatype/src/main')
-rw-r--r--common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java
index 80a2a22b25..e771f4e5b9 100644
--- a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java
+++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java
@@ -12,13 +12,14 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ * Modifications copyright (c) 2019 Nokia
*/
package org.onap.sdc.tosca.datatypes.model;
-import java.util.HashSet;
import java.util.List;
import java.util.Objects;
+
import org.onap.sdc.tosca.services.DataModelCloneUtil;
@@ -52,8 +53,8 @@ public class Implementation implements Cloneable {
return false;
}
Implementation that = (Implementation) o;
- return Objects.equals(primary, that.primary) && Objects.equals(new HashSet<>(dependencies),
- new HashSet<>(that.dependencies));
+ return Objects.equals(primary, that.primary)
+ && Objects.equals(dependencies, that.dependencies);
}
@Override