JavaPluginDescriptionTests.kt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright 2019-2021 Mamoe Technologies and contributors.
  3. *
  4. * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
  5. * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
  6. *
  7. * https://github.com/mamoe/mirai/blob/master/LICENSE
  8. */
  9. package data
  10. import net.mamoe.mirai.console.framework.AbstractConsoleTest
  11. @Suppress("unused")
  12. class JavaPluginDescriptionTests : AbstractConsoleTest() {
  13. // @Test
  14. // fun testSimpleValue() {
  15. // class MyJavaData : JAutoSavePluginData("data") {
  16. // val list: Value<String> = value("str")
  17. // }
  18. //
  19. // val d = MyJavaData()
  20. // mockPlugin.reloadPluginData(d)
  21. // assertEquals("str", d.list.value)
  22. // }
  23. //
  24. // @Test
  25. // fun testValueSet() {
  26. // class MyJavaData : JAutoSavePluginData("data") {
  27. // val list: Value<Set<String>> = typedValue(createKType(MutableSet::class.java, createKType(String::class.java)))
  28. // }
  29. //
  30. // mockPlugin.reloadPluginData(MyJavaData())
  31. // }
  32. }