Skip to content
Snippets Groups Projects
OdcTaskTest.kt 511 B
Newer Older
package de.fraunhofer.iem.dataprovider

import de.fraunhofer.iem.dataprovider.taskManager.Event
import de.fraunhofer.iem.dataprovider.taskManager.tasks.OdcTask
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import org.junit.jupiter.api.Test

@OptIn(ExperimentalCoroutinesApi::class)
class OdcTaskTest {
    suspend fun callback(event: Event) {}

    @Test
    fun initTest() = runTest {
        OdcTask("/this/is/no/real/path", "/neither/is/this", ::callback)
    }
}

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.