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])