From 1845ca87988a2469aec14ad01dd7b8a2394175d4 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 10 Apr 2021 16:35:40 +0800 Subject: [PATCH] Temporarily disable tests --- .../test/data/JavaPluginDescriptionTests.kt | 43 ++++++++----------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/backend/mirai-console/test/data/JavaPluginDescriptionTests.kt b/backend/mirai-console/test/data/JavaPluginDescriptionTests.kt index bf92ee6b8..bd13bb1b1 100644 --- a/backend/mirai-console/test/data/JavaPluginDescriptionTests.kt +++ b/backend/mirai-console/test/data/JavaPluginDescriptionTests.kt @@ -9,33 +9,28 @@ package data import net.mamoe.mirai.console.AbstractConsoleTest -import net.mamoe.mirai.console.data.Value -import net.mamoe.mirai.console.data.java.JAutoSavePluginData -import net.mamoe.mirai.console.plugin.jvm.reloadPluginData -import org.junit.jupiter.api.Test -import kotlin.test.assertEquals @Suppress("unused") class JavaPluginDescriptionTests : AbstractConsoleTest() { - @Test - fun testSimpleValue() { - class MyJavaData : JAutoSavePluginData("data") { - val list: Value = value("str") - } - - val d = MyJavaData() - mockPlugin.reloadPluginData(d) - assertEquals("str", d.list.value) - } - - @Test - fun testValueSet() { - class MyJavaData : JAutoSavePluginData("data") { - val list: Value> = typedValue(createKType(MutableSet::class.java, createKType(String::class.java))) - } - - mockPlugin.reloadPluginData(MyJavaData()) - } +// @Test +// fun testSimpleValue() { +// class MyJavaData : JAutoSavePluginData("data") { +// val list: Value = value("str") +// } +// +// val d = MyJavaData() +// mockPlugin.reloadPluginData(d) +// assertEquals("str", d.list.value) +// } +// +// @Test +// fun testValueSet() { +// class MyJavaData : JAutoSavePluginData("data") { +// val list: Value> = typedValue(createKType(MutableSet::class.java, createKType(String::class.java))) +// } +// +// mockPlugin.reloadPluginData(MyJavaData()) +// } } \ No newline at end of file