diff options
author | aribeiro <anderson.ribeiro@est.tech> | 2021-10-01 11:30:49 +0100 |
---|---|---|
committer | Andr� Schmid <andre.schmid@est.tech> | 2021-11-05 17:14:06 +0000 |
commit | 1de1692115d1df5b4e07c1feb21d098899a6604b (patch) | |
tree | 1e26079e5cc5dc708eb666611f98dd0fc0af571d /catalog-be/src/test | |
parent | 2b55a906b7115ff2b156b35a4ff66811157111ee (diff) |
Add UI support for adding tosca artifact types
UI support for adding artifacts to an interface operation implementation
Issue-ID: SDC-3768
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Change-Id: I71b3e49a160521e35a45515ad7adef836f901e78
Diffstat (limited to 'catalog-be/src/test')
2 files changed, 7 insertions, 8 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/builder/ToscaRelationshipBuilderTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/builder/ToscaRelationshipBuilderTest.java index cee70661be..a5008b3e27 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/builder/ToscaRelationshipBuilderTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/builder/ToscaRelationshipBuilderTest.java @@ -29,6 +29,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openecomp.sdc.be.datatypes.elements.ArtifactDataDefinition; import org.openecomp.sdc.be.model.CapabilityRequirementRelationship; import org.openecomp.sdc.be.model.RelationshipImpl; import org.openecomp.sdc.be.model.RelationshipInfo; @@ -55,13 +56,13 @@ class ToscaRelationshipBuilderTest { final OperationUi operationUi1 = new OperationUi(); operationUi1.setInterfaceType("interfaceType1"); operationUi1.setOperationType("operation1"); - operationUi1.setImplementation("implementation"); + operationUi1.setImplementation(new ArtifactDataDefinition()); operationList.add(operationUi1); final OperationUi operationUi2 = new OperationUi(); operationUi2.setInterfaceType("interfaceType1"); operationUi2.setOperationType("operation2"); - operationUi2.setImplementation("implementation"); + operationUi2.setImplementation(new ArtifactDataDefinition()); operationList.add(operationUi2); final List<PropertyAssignmentUi> operation2InputList = new ArrayList<>(); final PropertyAssignmentUi propertyAssignmentUi1 = new PropertyAssignmentUi(); @@ -79,7 +80,7 @@ class ToscaRelationshipBuilderTest { final OperationUi operationUi3 = new OperationUi(); operationUi3.setInterfaceType("interfaceType2"); operationUi3.setOperationType("operation1"); - operationUi3.setImplementation("implementation"); + operationUi3.setImplementation(new ArtifactDataDefinition()); operationList.add(operationUi3); relationship.setOperations(operationList); diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaLifecycleOperationDefinitionTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaLifecycleOperationDefinitionTest.java index 054a6cfa6c..7d5e957900 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaLifecycleOperationDefinitionTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaLifecycleOperationDefinitionTest.java @@ -20,11 +20,10 @@ package org.openecomp.sdc.be.tosca.model; +import java.util.Map; import org.junit.Assert; import org.junit.Test; -import java.util.Map; - public class ToscaLifecycleOperationDefinitionTest { private ToscaLifecycleOperationDefinition createTestSubject() { @@ -34,7 +33,7 @@ public class ToscaLifecycleOperationDefinitionTest { @Test public void testGetImplementation() throws Exception { ToscaLifecycleOperationDefinition testSubject; - String result; + Object result; // default test testSubject = createTestSubject(); @@ -44,11 +43,10 @@ public class ToscaLifecycleOperationDefinitionTest { @Test public void testSetImplementation() throws Exception { ToscaLifecycleOperationDefinition testSubject; - String implementation = ""; // default test testSubject = createTestSubject(); - testSubject.setImplementation(implementation); + testSubject.setImplementation(new ToscaInterfaceOperationImplementation()); } @Test |