aboutsummaryrefslogtreecommitdiff
path: root/src/gametest/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'src/gametest/kotlin')
-rw-r--r--src/gametest/kotlin/moe/nea/firmament/gametest/GameTest.kt24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gametest/kotlin/moe/nea/firmament/gametest/GameTest.kt b/src/gametest/kotlin/moe/nea/firmament/gametest/GameTest.kt
new file mode 100644
index 0000000..0ef0340
--- /dev/null
+++ b/src/gametest/kotlin/moe/nea/firmament/gametest/GameTest.kt
@@ -0,0 +1,24 @@
+package moe.nea.firmament.gametest
+
+import net.fabricmc.fabric.api.client.gametest.v1.FabricClientGameTest
+import net.fabricmc.fabric.api.client.gametest.v1.context.ClientGameTestContext
+import org.junit.jupiter.api.Assertions
+import org.spongepowered.asm.mixin.MixinEnvironment
+import moe.nea.firmament.init.MixinPlugin
+import moe.nea.firmament.test.FirmTestBootstrap
+
+class GameTest : FabricClientGameTest {
+ override fun runTest(ctx: ClientGameTestContext) {
+ FirmTestBootstrap.bootstrapMinecraft()
+ MixinEnvironment.getCurrentEnvironment().audit()
+ val mp = MixinPlugin.instances.single()
+ Assertions.assertEquals(
+ mp.expectedFullPathMixins,
+ mp.appliedFullPathMixins,
+ )
+ Assertions.assertNotEquals(
+ 0,
+ mp.mixins.size
+ )
+ }
+}