Formatting Code base with ktlint
[ccsdk/cds.git] / ms / controllerblueprints / modules / blueprint-core / src / test / kotlin / org / onap / ccsdk / cds / controllerblueprints / core / annotations / BluePrintsAnnotationsTest.kt
index c24ed03..a75262f 100644 (file)
@@ -27,90 +27,93 @@ class BluePrintsAnnotationsTest {
     @Test
     fun testBluePrintWorkflowData() {
         val wfInput = TestBluePrintsWorkflowInput::class.asPropertyDefinitionMap()
-        //println(wfInput.asJsonString(true))
+        // println(wfInput.asJsonString(true))
         assertNotNull(wfInput, "failed to generate wfInput property map")
 
         val wfOutput = TestBluePrintsWorkflowOutput::class.asPropertyDefinitionMap()
-        //println(wfOutput.asJsonString(true))
+        // println(wfOutput.asJsonString(true))
         assertNotNull(wfInput, "failed to generate wfOutput property map")
     }
 
     @Test
     fun testBluePrintDataType() {
         val dataTypes = TestBluePrintsDataType::class.asBluePrintsDataTypes()
-        //println(dataTypes.asJsonString(true))
+        // println(dataTypes.asJsonString(true))
         assertNotNull(dataTypes, "failed to generate dataTypes definition")
     }
 }
 
-@BluePrintsDataType(name = "dt-test-datatype", description = "I am test",
-        version = "1.0.0", derivedFrom = "tosca.datatypes.root")
+@BluePrintsDataType(
+    name = "dt-test-datatype", description = "I am test",
+    version = "1.0.0", derivedFrom = "tosca.datatypes.root"
+)
 data class TestBluePrintsDataType(
-        @BluePrintsProperty(description = "this stringData")
-        var stringData: String,
-        @BluePrintsProperty(description = "this stringDataWithValue")
-        @PropertyDefaultValue(value = "USA")
-        val stringDataWithValue: String,
-        @BluePrintsProperty(description = "this intDataWithValue")
-        @PropertyDefaultValue(value = "30")
-        val intDataWithValue: Int,
-        @BluePrintsProperty(description = "this booleanDataWithValue")
-        @PropertyDefaultValue(value = "true")
-        val booleanDataWithValue: Boolean,
-        @BluePrintsProperty(description = "this anyData")
-        val anyData: Any,
-        @BluePrintsProperty(description = "this jsonDataWithValue")
-        @PropertyDefaultValue(value = """{"data" : "1234"}""")
-        val jsonDataWithValue: JsonNode?,
-        @BluePrintsProperty(description = "listData")
-        val listData: MutableList<String>,
-        @BluePrintsProperty(description = "this mapData")
-        val mapData: MutableMap<String, String> = hashMapOf(),
-        @BluePrintsProperty(description = "this complexData")
-        val complexData: TestBluePrintsChildDataType?,
-        @BluePrintsProperty(description = "this complexDataList")
-        val complexDataList: MutableList<TestBluePrintsChildDataType>
+    @BluePrintsProperty(description = "this stringData")
+    var stringData: String,
+    @BluePrintsProperty(description = "this stringDataWithValue")
+    @PropertyDefaultValue(value = "USA")
+    val stringDataWithValue: String,
+    @BluePrintsProperty(description = "this intDataWithValue")
+    @PropertyDefaultValue(value = "30")
+    val intDataWithValue: Int,
+    @BluePrintsProperty(description = "this booleanDataWithValue")
+    @PropertyDefaultValue(value = "true")
+    val booleanDataWithValue: Boolean,
+    @BluePrintsProperty(description = "this anyData")
+    val anyData: Any,
+    @BluePrintsProperty(description = "this jsonDataWithValue")
+    @PropertyDefaultValue(value = """{"data" : "1234"}""")
+    val jsonDataWithValue: JsonNode?,
+    @BluePrintsProperty(description = "listData")
+    val listData: MutableList<String>,
+    @BluePrintsProperty(description = "this mapData")
+    val mapData: MutableMap<String, String> = hashMapOf(),
+    @BluePrintsProperty(description = "this complexData")
+    val complexData: TestBluePrintsChildDataType?,
+    @BluePrintsProperty(description = "this complexDataList")
+    val complexDataList: MutableList<TestBluePrintsChildDataType>
 )
 
 data class TestBluePrintsChildDataType(val name: String)
 
-
 @BluePrintsWorkflowInput
 data class TestBluePrintsWorkflowInput(
-        @BluePrintsProperty(description = "this sample name")
-        @PropertyDefaultValue(value = "Brinda")
-        var name: String,
-        @BluePrintsProperty(description = "this sample name")
-        val place: String
+    @BluePrintsProperty(description = "this sample name")
+    @PropertyDefaultValue(value = "Brinda")
+    var name: String,
+    @BluePrintsProperty(description = "this sample name")
+    val place: String
 )
 
 @BluePrintsWorkflowOutput
 data class TestBluePrintsWorkflowOutput(
-        @BluePrintsProperty(description = "this is dslExpression")
-        @DSLExpression("field1")
-        var dslExpression: String,
-
-        @BluePrintsProperty(description = "this is withNodeAttributeExpression")
-        @AttributeExpression(modelableEntityName = "sample-node", attributeName = "response-data")
-        var withNodeAttributeExpression: String,
-
-        @BluePrintsProperty(description = "this is withNodeAttributeExpressionSubAttribute")
-        @AttributeExpression(modelableEntityName = "sample-node", attributeName = "response-data",
-                subAttributeName = ".\$field1")
-        var withNodeAttributeExpressionSubAttribute: String,
-
-        @BluePrintsProperty(description = "this is withAttributeExpressionSubAttribute")
-        @AttributeExpression(attributeName = "response-data", subAttributeName = ".\$field1")
-        var withAttributeExpressionSubAttribute: String,
-
-        @BluePrintsProperty(description = "this is withAttributeExpression")
-        @AttributeExpression(attributeName = "response-data")
-        var withAttributeExpression: String,
-
-        @BluePrintsProperty(description = "this is withAArtifactExpression")
-        @ArtifactExpression(modelableEntityName = "test-node", artifactName = "content-template")
-        var withAArtifactExpression: String,
-
-        @BluePrintsProperty(description = "this status")
-        val status: String = "success"
-)
\ No newline at end of file
+    @BluePrintsProperty(description = "this is dslExpression")
+    @DSLExpression("field1")
+    var dslExpression: String,
+
+    @BluePrintsProperty(description = "this is withNodeAttributeExpression")
+    @AttributeExpression(modelableEntityName = "sample-node", attributeName = "response-data")
+    var withNodeAttributeExpression: String,
+
+    @BluePrintsProperty(description = "this is withNodeAttributeExpressionSubAttribute")
+    @AttributeExpression(
+        modelableEntityName = "sample-node", attributeName = "response-data",
+        subAttributeName = ".\$field1"
+    )
+    var withNodeAttributeExpressionSubAttribute: String,
+
+    @BluePrintsProperty(description = "this is withAttributeExpressionSubAttribute")
+    @AttributeExpression(attributeName = "response-data", subAttributeName = ".\$field1")
+    var withAttributeExpressionSubAttribute: String,
+
+    @BluePrintsProperty(description = "this is withAttributeExpression")
+    @AttributeExpression(attributeName = "response-data")
+    var withAttributeExpression: String,
+
+    @BluePrintsProperty(description = "this is withAArtifactExpression")
+    @ArtifactExpression(modelableEntityName = "test-node", artifactName = "content-template")
+    var withAArtifactExpression: String,
+
+    @BluePrintsProperty(description = "this status")
+    val status: String = "success"
+)