blob: 482d21abd1d3b7ad2aa8787c83578179397877b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package org.onap.ccsdk.cds.controllerblueprints.core
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class BlueprintErrorTest {
@Test
fun testBlueprintErrorIsCreatedWithemptyList() {
val bluePrintError = BlueprintError()
assertTrue(bluePrintError.errors.isEmpty())
}
@Test
fun testAddErrorWith3Params() {
val bluePrintError = BlueprintError()
bluePrintError.addError("type", "name", "error")
assertEquals("type : name : error", bluePrintError.errors[0])
}
@Test
fun testAddErrorWith1Params() {
val bluePrintError = BlueprintError()
bluePrintError.addError("error")
assertEquals("error", bluePrintError.errors[0])
}
}
|