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