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.allErrors().isEmpty())
17 fun testAddErrorWith3Params() {
18 val bluePrintError = BluePrintError()
20 bluePrintError.addError("type", "name", "error", "step")
22 assertEquals("type : name : error", bluePrintError.stepErrors("step")!![0])
26 fun testAddErrorWith2Params() {
27 val bluePrintError = BluePrintError()
29 bluePrintError.addError("error", "step")
31 assertEquals("error", bluePrintError.stepErrors("step")!![0])