Fix build

This commit is contained in:
Him188 2020-05-15 01:00:29 +08:00
parent e668e48f98
commit 71a83c8509

View File

@ -11,20 +11,18 @@
package net.mamoe.mirai.console.command package net.mamoe.mirai.console.command
import kotlinx.coroutines.runBlocking
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.console.plugins.PluginBase import net.mamoe.mirai.console.plugins.PluginBase
import net.mamoe.mirai.message.data.* import net.mamoe.mirai.message.data.*
import org.junit.jupiter.api.Test import org.junit.jupiter.api.Test
import kotlin.test.assertEquals import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertTrue
val plugin: PluginBase = object : PluginBase() { val plugin: PluginBase = object : PluginBase() {
} }
/*
internal object TestCommand : PluginCommand( internal object TestCommand : PluginCommand(
plugin, plugin,
CommandDescriptor("test") { CommandDescriptor("test") {
@ -36,7 +34,7 @@ internal object TestCommand : PluginCommand(
sendMessage(s) sendMessage(s)
return true return true
} }
} }*/
internal class TestCommands { internal class TestCommands {
@Test @Test
@ -50,6 +48,7 @@ internal class TestCommands {
) )
} }
/*
@Test @Test
fun testRegister() { fun testRegister() {
assertTrue(TestCommand.register()) assertTrue(TestCommand.register())
@ -81,7 +80,7 @@ internal class TestCommands {
execute("test", "arg") execute("test", "arg")
}.contentToString() }.contentToString()
) )
} }*/
} }