Fix a classloading issue in tests (#8459)

This commit is contained in:
Jake Potrebic
2022-10-11 20:05:28 -07:00
parent 420e6ac365
commit c8d979234f
2 changed files with 1 additions and 8 deletions

View File

@@ -135,22 +135,15 @@ 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() {