Formatting Code base with ktlint
[ccsdk/cds.git] / ms / blueprintsprocessor / functions / netconf-executor / src / test / kotlin / org / onap / ccsdk / cds / blueprintsprocessor / functions / netconf / executor / ComponentNetconfExecutorTest.kt
index be3ee46..f3df55b 100644 (file)
@@ -54,16 +54,22 @@ class ComponentNetconfExecutorTest {
 
             coEvery { blueprintJythonService.jythonComponentInstance(any(), any()) } returns mockAbstractScriptComponentFunction
 
-            val componentFunctionScriptingService = ComponentFunctionScriptingService(applicationContext,
-                    blueprintJythonService)
+            val componentFunctionScriptingService = ComponentFunctionScriptingService(
+                applicationContext,
+                blueprintJythonService
+            )
 
             val componentNetconfExecutor = ComponentNetconfExecutor(componentFunctionScriptingService)
 
-            val executionServiceInput = JacksonUtils.readValueFromClassPathFile("requests/sample-activate-request.json",
-                    ExecutionServiceInput::class.java)!!
+            val executionServiceInput = JacksonUtils.readValueFromClassPathFile(
+                "requests/sample-activate-request.json",
+                ExecutionServiceInput::class.java
+            )!!
 
-            val bluePrintRuntimeService = BluePrintMetadataUtils.getBluePrintRuntime("1234",
-                    "./../../../../components/model-catalog/blueprint-model/test-blueprint/baseconfiguration")
+            val bluePrintRuntimeService = BluePrintMetadataUtils.getBluePrintRuntime(
+                "1234",
+                "./../../../../components/model-catalog/blueprint-model/test-blueprint/baseconfiguration"
+            )
 
             val assignmentParams = """{
                 "ipAddress" : "127.0.0.1",
@@ -77,12 +83,14 @@ class ComponentNetconfExecutorTest {
             """.trimIndent()
 
             bluePrintRuntimeService.assignInputs(json.asJsonType())
-            bluePrintRuntimeService.setNodeTemplateAttributeValue("resource-assignment", "assignment-params",
-                    JacksonUtils.jsonNode(assignmentParams))
+            bluePrintRuntimeService.setNodeTemplateAttributeValue(
+                "resource-assignment", "assignment-params",
+                JacksonUtils.jsonNode(assignmentParams)
+            )
 
             componentNetconfExecutor.bluePrintRuntimeService = bluePrintRuntimeService
 
-            //TODO("Set Attribute properties")
+            // TODO("Set Attribute properties")
             val stepMetaData: MutableMap<String, JsonNode> = hashMapOf()
             stepMetaData.putJsonElement(BluePrintConstants.PROPERTY_CURRENT_NODE_TEMPLATE, "activate-netconf")
             stepMetaData.putJsonElement(BluePrintConstants.PROPERTY_CURRENT_INTERFACE, "ComponentNetconfExecutor")
@@ -98,4 +106,3 @@ class ComponentNetconfExecutorTest {
         }
     }
 }
-