import org.junit.Before
import org.junit.Test
import org.onap.ccsdk.cds.blueprintsprocessor.core.service.ClusterLock
-import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintException
+import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintException
import kotlin.test.assertEquals
-class BluePrintClusterExtensionsTest {
+class BlueprintClusterExtensionsTest {
private lateinit var clusterLockMock: ClusterLock
}
}
- @Test(expected = BluePrintException::class)
+ @Test(expected = BlueprintException::class)
fun `executeWithLock - should throw exception when lock was not acquired within timeout`() {
runBlocking {
every { runBlocking { clusterLockMock.tryLock(eq(0L)) } } returns false