diff options
author | JvD_Ericsson <jeff.van.dam@est.tech> | 2023-07-18 11:35:18 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-09-22 07:41:02 +0000 |
commit | 629837b3f7a282c74604987fd531ff4523f98a0c (patch) | |
tree | d1afa021ef1342c72dd0a6ea016084651680caa7 /catalog-model/src | |
parent | 615f2405b8d2dee1d91cf20188a180591ec84ab3 (diff) |
Backend support for operation milestones with activities
Issue-ID: SDC-4577
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I6a8dab0e48da542424faa017a1dea384ebb2376f
Diffstat (limited to 'catalog-model/src')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/Operation.java | 6 | ||||
-rw-r--r-- | catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationTest.java | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Operation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Operation.java index 92c7c5972d..a25fd015b9 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Operation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Operation.java @@ -19,11 +19,14 @@ */ package org.openecomp.sdc.be.model; +import java.util.Map; import org.openecomp.sdc.be.datatypes.elements.ArtifactDataDefinition; import org.openecomp.sdc.be.datatypes.elements.ListDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.MilestoneDataDefinition; import org.openecomp.sdc.be.datatypes.elements.OperationDataDefinition; import org.openecomp.sdc.be.datatypes.elements.OperationInputDefinition; import org.openecomp.sdc.be.datatypes.elements.OperationOutputDefinition; +import org.openecomp.sdc.be.datatypes.enums.MilestoneTypeEnum; /** * Defines an operation available to manage particular aspects of the Node Type. @@ -48,11 +51,12 @@ public class Operation extends OperationDataDefinition implements IOperationPara } public Operation(ArtifactDataDefinition implementation, String description, ListDataDefinition<OperationInputDefinition> inputs, - ListDataDefinition<OperationOutputDefinition> outputs) { + ListDataDefinition<OperationOutputDefinition> outputs, Map<String, MilestoneDataDefinition> milestones) { super(description); setImplementation(implementation); setInputs(inputs); setOutputs(outputs); + setMilestones(milestones); } @Override diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationTest.java index 2ad982910c..f1730ed070 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationTest.java @@ -20,6 +20,7 @@ package org.openecomp.sdc.be.model; +import java.util.HashMap; import org.junit.Test; import org.openecomp.sdc.be.datatypes.elements.ArtifactDataDefinition; import org.openecomp.sdc.be.datatypes.elements.ListDataDefinition; @@ -34,9 +35,9 @@ public class OperationTest { @Test public void testCtor() throws Exception { new Operation(new OperationDataDefinition()); - new Operation(new ArtifactDataDefinition(), "mock", new ListDataDefinition<>(), new ListDataDefinition<>()); + new Operation(new ArtifactDataDefinition(), "mock", new ListDataDefinition<>(), new ListDataDefinition<>(), new HashMap<>()); } - + @Test public void testIsDefinition() throws Exception { Operation testSubject; |