aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/annotations
diff options
context:
space:
mode:
Diffstat (limited to 'ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/annotations')
-rw-r--r--ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/annotations/BluePrintsAnnotationsTest.kt (renamed from ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/annotations/BlueprintsAnnotationsTest.kt)70
1 files changed, 35 insertions, 35 deletions
diff --git a/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/annotations/BlueprintsAnnotationsTest.kt b/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/annotations/BluePrintsAnnotationsTest.kt
index b19c3502a..a75262f96 100644
--- a/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/annotations/BlueprintsAnnotationsTest.kt
+++ b/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/annotations/BluePrintsAnnotationsTest.kt
@@ -17,103 +17,103 @@
package org.onap.ccsdk.cds.controllerblueprints.core.annotations
import com.fasterxml.jackson.databind.JsonNode
-import org.onap.ccsdk.cds.controllerblueprints.core.asBlueprintsDataTypes
+import org.onap.ccsdk.cds.controllerblueprints.core.asBluePrintsDataTypes
import org.onap.ccsdk.cds.controllerblueprints.core.asPropertyDefinitionMap
import kotlin.test.Test
import kotlin.test.assertNotNull
-class BlueprintsAnnotationsTest {
+class BluePrintsAnnotationsTest {
@Test
- fun testBlueprintWorkflowData() {
- val wfInput = TestBlueprintsWorkflowInput::class.asPropertyDefinitionMap()
+ fun testBluePrintWorkflowData() {
+ val wfInput = TestBluePrintsWorkflowInput::class.asPropertyDefinitionMap()
// println(wfInput.asJsonString(true))
assertNotNull(wfInput, "failed to generate wfInput property map")
- val wfOutput = TestBlueprintsWorkflowOutput::class.asPropertyDefinitionMap()
+ val wfOutput = TestBluePrintsWorkflowOutput::class.asPropertyDefinitionMap()
// println(wfOutput.asJsonString(true))
assertNotNull(wfInput, "failed to generate wfOutput property map")
}
@Test
- fun testBlueprintDataType() {
- val dataTypes = TestBlueprintsDataType::class.asBlueprintsDataTypes()
+ fun testBluePrintDataType() {
+ val dataTypes = TestBluePrintsDataType::class.asBluePrintsDataTypes()
// println(dataTypes.asJsonString(true))
assertNotNull(dataTypes, "failed to generate dataTypes definition")
}
}
-@BlueprintsDataType(
+@BluePrintsDataType(
name = "dt-test-datatype", description = "I am test",
version = "1.0.0", derivedFrom = "tosca.datatypes.root"
)
-data class TestBlueprintsDataType(
- @BlueprintsProperty(description = "this stringData")
+data class TestBluePrintsDataType(
+ @BluePrintsProperty(description = "this stringData")
var stringData: String,
- @BlueprintsProperty(description = "this stringDataWithValue")
+ @BluePrintsProperty(description = "this stringDataWithValue")
@PropertyDefaultValue(value = "USA")
val stringDataWithValue: String,
- @BlueprintsProperty(description = "this intDataWithValue")
+ @BluePrintsProperty(description = "this intDataWithValue")
@PropertyDefaultValue(value = "30")
val intDataWithValue: Int,
- @BlueprintsProperty(description = "this booleanDataWithValue")
+ @BluePrintsProperty(description = "this booleanDataWithValue")
@PropertyDefaultValue(value = "true")
val booleanDataWithValue: Boolean,
- @BlueprintsProperty(description = "this anyData")
+ @BluePrintsProperty(description = "this anyData")
val anyData: Any,
- @BlueprintsProperty(description = "this jsonDataWithValue")
+ @BluePrintsProperty(description = "this jsonDataWithValue")
@PropertyDefaultValue(value = """{"data" : "1234"}""")
val jsonDataWithValue: JsonNode?,
- @BlueprintsProperty(description = "listData")
+ @BluePrintsProperty(description = "listData")
val listData: MutableList<String>,
- @BlueprintsProperty(description = "this mapData")
+ @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 complexData")
+ val complexData: TestBluePrintsChildDataType?,
+ @BluePrintsProperty(description = "this complexDataList")
+ val complexDataList: MutableList<TestBluePrintsChildDataType>
)
-data class TestBlueprintsChildDataType(val name: String)
+data class TestBluePrintsChildDataType(val name: String)
-@BlueprintsWorkflowInput
-data class TestBlueprintsWorkflowInput(
- @BlueprintsProperty(description = "this sample name")
+@BluePrintsWorkflowInput
+data class TestBluePrintsWorkflowInput(
+ @BluePrintsProperty(description = "this sample name")
@PropertyDefaultValue(value = "Brinda")
var name: String,
- @BlueprintsProperty(description = "this sample name")
+ @BluePrintsProperty(description = "this sample name")
val place: String
)
-@BlueprintsWorkflowOutput
-data class TestBlueprintsWorkflowOutput(
- @BlueprintsProperty(description = "this is dslExpression")
+@BluePrintsWorkflowOutput
+data class TestBluePrintsWorkflowOutput(
+ @BluePrintsProperty(description = "this is dslExpression")
@DSLExpression("field1")
var dslExpression: String,
- @BlueprintsProperty(description = "this is withNodeAttributeExpression")
+ @BluePrintsProperty(description = "this is withNodeAttributeExpression")
@AttributeExpression(modelableEntityName = "sample-node", attributeName = "response-data")
var withNodeAttributeExpression: String,
- @BlueprintsProperty(description = "this is withNodeAttributeExpressionSubAttribute")
+ @BluePrintsProperty(description = "this is withNodeAttributeExpressionSubAttribute")
@AttributeExpression(
modelableEntityName = "sample-node", attributeName = "response-data",
subAttributeName = ".\$field1"
)
var withNodeAttributeExpressionSubAttribute: String,
- @BlueprintsProperty(description = "this is withAttributeExpressionSubAttribute")
+ @BluePrintsProperty(description = "this is withAttributeExpressionSubAttribute")
@AttributeExpression(attributeName = "response-data", subAttributeName = ".\$field1")
var withAttributeExpressionSubAttribute: String,
- @BlueprintsProperty(description = "this is withAttributeExpression")
+ @BluePrintsProperty(description = "this is withAttributeExpression")
@AttributeExpression(attributeName = "response-data")
var withAttributeExpression: String,
- @BlueprintsProperty(description = "this is withAArtifactExpression")
+ @BluePrintsProperty(description = "this is withAArtifactExpression")
@ArtifactExpression(modelableEntityName = "test-node", artifactName = "content-template")
var withAArtifactExpression: String,
- @BlueprintsProperty(description = "this status")
+ @BluePrintsProperty(description = "this status")
val status: String = "success"
)