diff options
author | imamSidero <imam.hussain@est.tech> | 2023-04-12 16:02:46 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-05-09 14:33:29 +0000 |
commit | a1ba3abf29613ee9e576a7c96a76ceb921086044 (patch) | |
tree | f3f9e4d9c98c6b5bc2d8aba1be01b327dd36b31d /common-be/src/test | |
parent | 3bc3a5c724e9a6ea8a112dca72a9a3128eddca19 (diff) |
Support for addition of INDEX token to tosca functions
Providing the capability to add the index token to th tosca function of all types
Issue-ID: SDC-4472
Signed-off-by: Imam hussain <imam.hussain@est.tech>
Change-Id: Ib7ac80f31710101f50de76bdb7c79abdc637cfe3
Diffstat (limited to 'common-be/src/test')
-rw-r--r-- | common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ToscaGetFunctionDataDefinitionTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ToscaGetFunctionDataDefinitionTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ToscaGetFunctionDataDefinitionTest.java index 5daeaa5aad..581f62a91f 100644 --- a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ToscaGetFunctionDataDefinitionTest.java +++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ToscaGetFunctionDataDefinitionTest.java @@ -61,8 +61,8 @@ class ToscaGetFunctionDataDefinitionTest { final Map<?, ?> getInputJsonAsMap = convertJsonStringToMap(actualValue); assertTrue(getInputJsonAsMap.containsKey(ToscaGetFunctionType.GET_INPUT.getFunctionName())); final Object value = getInputJsonAsMap.get(ToscaGetFunctionType.GET_INPUT.getFunctionName()); - assertTrue(value instanceof String); - assertEquals(value, propertyName); + assertTrue(value instanceof List); + assertEquals(((List<String>)value).get(0), propertyName); } @Test |