All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmTest.internal.FastServiceLoaderTest.kt Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package kotlinx.coroutines.internal

import kotlinx.coroutines.*
import kotlin.test.*

class FastServiceLoaderTest : TestBase() {
    @Test
    fun testCrossModuleService() {
        val providers = CoroutineScope::class.java.let { FastServiceLoader.loadProviders(it, it.classLoader) }
        assertEquals(3, providers.size)
        val className = "kotlinx.coroutines.android.EmptyCoroutineScopeImpl"
        for (i in 1 .. 3) {
            assert(providers[i - 1].javaClass.name == "$className$i")
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy