aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctionsTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctionsTest.kt')
-rw-r--r--ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctionsTest.kt16
1 files changed, 8 insertions, 8 deletions
diff --git a/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctionsTest.kt b/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctionsTest.kt
index 8c1e9f65f..7ac9b8649 100644
--- a/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctionsTest.kt
+++ b/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctionsTest.kt
@@ -95,13 +95,13 @@ class CustomFunctionsTest {
val returnValueBool: JsonNode = false.asJsonType()
assertFalse(returnValueBool.asBoolean())
- val returnValue: JsonNode = BlueprintError().asJsonType()
+ val returnValue: JsonNode = BluePrintError().asJsonType()
assertEquals(JsonNodeType.OBJECT, returnValue.getNodeType())
}
@Test
fun testMapAsObjectNode() {
- val returnValue: ObjectNode = hashMapOf("test" to BlueprintError()).asObjectNode()
+ val returnValue: ObjectNode = hashMapOf("test" to BluePrintError()).asObjectNode()
assertNotNull(returnValue.get("test"))
}
@@ -121,7 +121,7 @@ class CustomFunctionsTest {
assertNull(returnValueString)
}
- @Test(expected = BlueprintException::class)
+ @Test(expected = BluePrintException::class)
fun testCastValue() {
val initMap: Map<String, Double> = hashMapOf("test" to 1.1)
val returnValue = initMap.castValue("test", Number::class)
@@ -178,7 +178,7 @@ class CustomFunctionsTest {
assertTrue("[{\"key\": \"value\"},{\"key\": \"value\"}]".asJsonType().isComplexType())
}
- @Test(expected = BlueprintException::class)
+ @Test(expected = BluePrintException::class)
fun testRootFieldsToMap() {
1.asJsonType().rootFieldsToMap()
}
@@ -192,7 +192,7 @@ class CustomFunctionsTest {
assertEquals(3, mutMap["hello"]?.asInt())
}
- @Test(expected = BlueprintException::class)
+ @Test(expected = BluePrintException::class)
fun testMapGetAsString() {
val initMap = hashMapOf("test" to "hello".asJsonType())
@@ -201,7 +201,7 @@ class CustomFunctionsTest {
initMap.getAsString("test2")
}
- @Test(expected = BlueprintException::class)
+ @Test(expected = BluePrintException::class)
fun testMapGetAsBoolean() {
val initMap = hashMapOf("test" to true.asJsonType())
@@ -210,7 +210,7 @@ class CustomFunctionsTest {
initMap.getAsBoolean("test2")
}
- @Test(expected = BlueprintException::class)
+ @Test(expected = BluePrintException::class)
fun testMapGetAsInt() {
val initMap = hashMapOf("test" to 1.asJsonType())
@@ -219,7 +219,7 @@ class CustomFunctionsTest {
initMap.getAsInt("test2")
}
- @Test(expected = BlueprintException::class)
+ @Test(expected = BluePrintException::class)
fun testCheckEquals() {
assertTrue(checkEquals("hello", "hello", { -> "error" }))