From 3f816f6fdeb32061c77ab9799e18f2cb41ce8ea7 Mon Sep 17 00:00:00 2001 From: aribeiro Date: Wed, 28 Oct 2020 14:55:59 +0000 Subject: Set directives and node_filters in any node type Allows to set directives and node_filters in any node type. Issue-ID: SDC-3404 Signed-off-by: aribeiro Change-Id: Ib75821e27bf949f841c990b1353f156eda2ae8f0 --- .../be/datamodel/UiComponentDataConverterTest.java | 27 ++++++++++------------ 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'catalog-be/src/test/java') diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/datamodel/UiComponentDataConverterTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/datamodel/UiComponentDataConverterTest.java index 84dd3b1e8c..ffe3d06e2a 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/datamodel/UiComponentDataConverterTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/datamodel/UiComponentDataConverterTest.java @@ -18,8 +18,17 @@ package org.openecomp.sdc.be.datamodel; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.collections.MapUtils; +import static org.assertj.core.api.Assertions.assertThat; +import static org.hibernate.validator.internal.util.CollectionHelper.asSet; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -47,18 +56,6 @@ import org.openecomp.sdc.be.ui.model.UiComponentDataTransfer; import org.openecomp.sdc.be.ui.model.UiComponentMetadata; import org.openecomp.sdc.be.ui.model.UiServiceDataTransfer; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.hibernate.validator.internal.util.CollectionHelper.asSet; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; - public class UiComponentDataConverterTest { private PolicyDefinition policy1, policy2; @@ -312,7 +309,7 @@ public class UiComponentDataConverterTest { UiComponentDataTransfer uiComponentDataTransfer = uiComponentDataConverter.getUiDataTransferFromResourceByParams(resource, Collections.singletonList("nodeFilter")); - assertThat(uiComponentDataTransfer.getNodeFilter()).isNotEmpty(); + assertThat(uiComponentDataTransfer.getNodeFilterforNode()).isNotEmpty(); } @Test -- cgit 1.2.3-korg