diff --git a/src/test/kotlin/dev/usbharu/hideout/service/job/KJobJobWorkerServiceTest.kt b/src/test/kotlin/dev/usbharu/hideout/service/job/KJobJobWorkerServiceTest.kt new file mode 100644 index 00000000..8ba24871 --- /dev/null +++ b/src/test/kotlin/dev/usbharu/hideout/service/job/KJobJobWorkerServiceTest.kt @@ -0,0 +1,16 @@ +package dev.usbharu.hideout.service.job + +import kjob.core.Job +import org.jetbrains.exposed.sql.Database +import org.junit.jupiter.api.Test + +class KJobJobWorkerServiceTest { + + object TestJob : Job("test-job") + + @Test + fun init() { + val kJobJobWorkerService = KJobJobWorkerService(Database.connect("jdbc:h2:mem:")) + kJobJobWorkerService.init(listOf(TestJob to { it -> execute { it as TestJob;println(it.propNames) } })) + } +}