diff options
Diffstat (limited to 'ms/blueprintsprocessor/functions/resource-resolution/src/test')
-rw-r--r-- | ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtilsTest.kt | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtilsTest.kt b/ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtilsTest.kt index 3c0af04ff..3251dcacb 100644 --- a/ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtilsTest.kt +++ b/ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtilsTest.kt @@ -278,7 +278,7 @@ class ResourceAssignmentUtilsTest { val arrayNodeForList1 = JacksonUtils.objectMapper.createArrayNode() listOfIps.forEach { val arrayChildNode = JacksonUtils.objectMapper.createObjectNode() - arrayChildNode.set("value", it.asJsonPrimitive()) + arrayChildNode.set<JsonNode>("value", it.asJsonPrimitive()) arrayNodeForList1.add(arrayChildNode) } inputMapToTestCollectionOfPrimitiveType = arrayNodeForList1 @@ -295,23 +295,23 @@ class ResourceAssignmentUtilsTest { val arrayNodeForList2 = JacksonUtils.objectMapper.createArrayNode() listOfIpAddresses.forEach { val arrayChildNode = JacksonUtils.objectMapper.createObjectNode() - arrayChildNode.set("value", it.asJsonType()) + arrayChildNode.set<JsonNode>("value", it.asJsonType()) arrayNodeForList2.add(arrayChildNode) } inputMapToTestCollectionOfComplexTypeWithOneOutputKeyMapping = arrayNodeForList2 val arrayNodeForList3 = JacksonUtils.objectMapper.createArrayNode() var childNode = JacksonUtils.objectMapper.createObjectNode() - childNode.set("port", "1111".asJsonPrimitive()) - childNode.set("ip", "1.2.3.1".asJsonPrimitive()) + childNode.set<JsonNode>("port", "1111".asJsonPrimitive()) + childNode.set<JsonNode>("ip", "1.2.3.1".asJsonPrimitive()) arrayNodeForList3.add(childNode) childNode = JacksonUtils.objectMapper.createObjectNode() - childNode.set("port", "2222".asJsonPrimitive()) - childNode.set("ip", "1.2.3.2".asJsonPrimitive()) + childNode.set<JsonNode>("port", "2222".asJsonPrimitive()) + childNode.set<JsonNode>("ip", "1.2.3.2".asJsonPrimitive()) arrayNodeForList3.add(childNode) childNode = JacksonUtils.objectMapper.createObjectNode() - childNode.set("port", "3333".asJsonPrimitive()) - childNode.set("ip", "1.2.3.3".asJsonPrimitive()) + childNode.set<JsonNode>("port", "3333".asJsonPrimitive()) + childNode.set<JsonNode>("ip", "1.2.3.3".asJsonPrimitive()) arrayNodeForList3.add(childNode) inputMapToTestCollectionOfComplexTypeWithAllOutputKeyMapping = arrayNodeForList3 @@ -340,15 +340,15 @@ class ResourceAssignmentUtilsTest { objectNode.set("host", Host("my-ipAddress", IpAddress("1111", "1.2.3.1")).asJsonType()) val childNode1 = JacksonUtils.objectMapper.createObjectNode() - childNode1.set("name", "my-ipAddress".asJsonPrimitive()) - childNode1.set("ipAddress", IpAddress("1111", "1.2.3.1").asJsonType()) - childNode1.set("port", "8888".asJsonType()) - childNode1.set("something", IpAddress("2222", "1.2.3.1").asJsonType()) + childNode1.set<JsonNode>("name", "my-ipAddress".asJsonPrimitive()) + childNode1.set<JsonNode>("ipAddress", IpAddress("1111", "1.2.3.1").asJsonType()) + childNode1.set<JsonNode>("port", "8888".asJsonType()) + childNode1.set<JsonNode>("something", IpAddress("2222", "1.2.3.1").asJsonType()) inputMapToTestComplexTypeWithAllOutputKeyMapping = childNode1 val childNode2 = JacksonUtils.objectMapper.createObjectNode() - childNode2.set("name", "my-ipAddress".asJsonPrimitive()) - childNode2.set("ipAddress", IpAddress("1111", "1.2.3.1").asJsonType()) + childNode2.set<JsonNode>("name", "my-ipAddress".asJsonPrimitive()) + childNode2.set<JsonNode>("ipAddress", IpAddress("1111", "1.2.3.1").asJsonType()) expectedValueToTestComplexTypeWithAllOutputKeyMapping = childNode2 } |