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