import kotlinx.coroutines.runBlocking
import org.junit.Test
-import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintRetryException
+import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintRetryException
-class BlueprintIOUtilsTest {
+class BluePrintIOUtilsTest {
@Test
fun testRetry() {
"success"
}
val exceptionBlock = { e: Exception ->
- if (e is BlueprintRetryException) {
+ if (e is BluePrintRetryException) {
println("this is blueprint error")
} else {
throw e
}
}
- BlueprintIOUtils.retry<String>(4, 0, 500, executionBlock, exceptionBlock)
+ BluePrintIOUtils.retry<String>(4, 0, 500, executionBlock, exceptionBlock)
}
}
}