diff options
author | JvD_Ericsson <jeff.van.dam@est.tech> | 2023-10-23 16:50:37 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-10-24 19:34:58 +0000 |
commit | 133d8bbc63891a9c169b002c03be9ec27f8bc486 (patch) | |
tree | 42523ec19f9824c736fc42786a8c1c72e3239a1e /catalog-be/src/test/java/org | |
parent | a762f63e5dc464dd160808615fce1cfa6c922c90 (diff) |
Milestone updates
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I43c91fbeb476acea8a8c05c249dcfb01618ddb7b
Issue-ID: SDC-4666
Diffstat (limited to 'catalog-be/src/test/java/org')
2 files changed, 4 insertions, 6 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/InterfaceDefinitionHandlerTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/InterfaceDefinitionHandlerTest.java index 800fbc2082..b57ae5a00c 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/InterfaceDefinitionHandlerTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/InterfaceDefinitionHandlerTest.java @@ -129,7 +129,7 @@ class InterfaceDefinitionHandlerTest { assertThrows(ByActionStatusComponentException.class, () -> interfaceDefinitionHandler.create(load, StringUtils.EMPTY)); assertEquals(ActionStatus.INVALID_OPERATION_MILESTONE, actualException.getActionStatus()); assertEquals(1, actualException.getParams().length); - assertEquals("on_failure", actualException.getParams()[0]); + assertEquals("on_success", actualException.getParams()[0]); } private void assertInterfaceDefinition(final InterfaceDefinition actualInterfaceDefinition) { diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/InterfacesOperationsConverterTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/InterfacesOperationsConverterTest.java index 7e4b4c28e2..5afd520811 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/InterfacesOperationsConverterTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/InterfacesOperationsConverterTest.java @@ -661,10 +661,8 @@ class InterfacesOperationsConverterTest { Map<String, Object> resource = (Map<String, Object>) resourceName; assertTrue(resource.containsKey("name_for_op_0")); Map<String, Object> operation0 = (Map<String, Object>) resource.get("name_for_op_0"); - assertTrue(operation0.containsKey("milestones")); - Map<String, Object> operation0Milestones = (Map<String, Object>) operation0.get("milestones"); - assertTrue(operation0Milestones.containsKey(MilestoneTypeEnum.ON_ENTRY.getValue())); - Map<String, Object> milestone = (Map<String, Object>) operation0Milestones.get(MilestoneTypeEnum.ON_ENTRY.getValue()); + assertTrue(operation0.containsKey(MilestoneTypeEnum.ON_ENTRY.getValue())); + Map<String, Object> milestone = (Map<String, Object>) operation0.get(MilestoneTypeEnum.ON_ENTRY.getValue()); assertTrue(milestone.containsKey("activities")); List<Map<String, Object>> activities = (List<Map<String, Object>>) milestone.get("activities"); assertEquals(1, activities.size()); @@ -676,7 +674,7 @@ class InterfacesOperationsConverterTest { assertEquals("workflow1", activityVariables.get("workflow")); assertTrue(activityVariables.containsKey("inputs")); assertTrue(activityVariables.get("inputs") instanceof Map); - Map<String, Object> inputs = (Map<String, Object>) activityVariables.get("inputs"); + Map<String, Object> inputs = (Map<String, Object>) activityVariables.get("inputs"); assertNotNull(inputs); assertTrue(inputs.containsKey("stringName")); assertTrue(inputs.get("stringName") instanceof String); |