1 package org.onap.ccsdk.cds.controllerblueprints.core
4 import kotlin.test.assertEquals
5 import kotlin.test.assertTrue
7 class BlueprintErrorTest {
10 fun testBlueprintErrorIsCreatedWithemptyList() {
11 val bluePrintError = BlueprintError()
13 assertTrue(bluePrintError.errors.isEmpty())
17 fun testAddErrorWith3Params() {
18 val bluePrintError = BlueprintError()
20 bluePrintError.addError("type", "name", "error")
22 assertEquals("type : name : error", bluePrintError.errors[0])
26 fun testAddErrorWith1Params() {
27 val bluePrintError = BlueprintError()
29 bluePrintError.addError("error")
31 assertEquals("error", bluePrintError.errors[0])