1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-27 14:34:57 +01:00

Fix stacktrace in server tests

This commit is contained in:
Jason Penilla 2022-10-11 16:52:49 -07:00
parent 07f0c9755b
commit 420e6ac365

View file

@ -135,15 +135,22 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
@@ -0,0 +0,0 @@
+package io.papermc.paper.advancement;
+
+import com.mojang.logging.LogUtils;
+import io.papermc.paper.adventure.PaperAdventure;
+import net.kyori.adventure.text.format.TextColor;
+import net.minecraft.advancements.FrameType;
+import net.minecraft.network.chat.contents.TranslatableContents;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+public class AdvancementFrameTest {
+ @Before
+ public void before() {
+ // Work around weird classloading issue when initializing PaperAdventure
+ LogUtils.getLogger();
+ }
+
+ @Test
+ public void test() {