Add injection test for AsyncSafetyTeleporter

This commit is contained in:
Ben Woo 2023-09-21 11:20:23 +08:00
parent 91f9842b24
commit a2f6e201d0
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import org.mvplugins.multiverse.core.commandtools.PluginLocales
import org.mvplugins.multiverse.core.config.MVCoreConfig
import org.mvplugins.multiverse.core.economy.MVEconomist
import org.mvplugins.multiverse.core.listeners.*
import org.mvplugins.multiverse.core.teleportation.AsyncSafetyTeleporter
import org.mvplugins.multiverse.core.teleportation.SimpleBlockSafety
import org.mvplugins.multiverse.core.teleportation.SimpleLocationManipulation
import org.mvplugins.multiverse.core.teleportation.TeleportQueue
@ -26,6 +27,11 @@ class InjectionTest : TestWithMockBukkit() {
assertNotNull(multiverseCore.getService(AnchorManager::class.java))
}
@Test
fun `AsyncSafetyTeleporter is available as a service`() {
assertNotNull(multiverseCore.getService(AsyncSafetyTeleporter::class.java))
}
@Test
fun `BlockSafety is available as a service`() {
assertNotNull(multiverseCore.getService(BlockSafety::class.java))