diff options
author | Jason Penilla <[email protected]> | 2022-10-11 16:52:49 -0700 |
---|---|---|
committer | Jason Penilla <[email protected]> | 2022-10-11 16:52:49 -0700 |
commit | f7c8d7966775dcba3e80580039afa54790867daf (patch) | |
tree | b222594ccdc8b9f5f93ae0345ecaf1be29f2b1d4 | |
parent | de2d2d4d940f3cfa003451b019a896558c30454e (diff) | |
download | Paper-f7c8d7966775dcba3e80580039afa54790867daf.tar.gz Paper-f7c8d7966775dcba3e80580039afa54790867daf.zip |
Fix stacktrace in server tests
-rw-r--r-- | patches/server/0696-Add-advancement-display-API.patch | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/patches/server/0696-Add-advancement-display-API.patch b/patches/server/0696-Add-advancement-display-API.patch index dd860e3b4d..ffabea75c3 100644 --- a/patches/server/0696-Add-advancement-display-API.patch +++ b/patches/server/0696-Add-advancement-display-API.patch @@ -129,21 +129,28 @@ index c47cae84f3b6970247d78382f48ae8ddbc202b59..0a46eeefa7d704350321828166f0049d } diff --git a/src/test/java/io/papermc/paper/advancement/AdvancementFrameTest.java b/src/test/java/io/papermc/paper/advancement/AdvancementFrameTest.java new file mode 100644 -index 0000000000000000000000000000000000000000..4d043e0e43ef8bb75788e195f95b5a50a51a2a48 +index 0000000000000000000000000000000000000000..8888e6026d65ac74d6e7471763dfa18807216c3e --- /dev/null +++ b/src/test/java/io/papermc/paper/advancement/AdvancementFrameTest.java -@@ -0,0 +1,24 @@ +@@ -0,0 +1,31 @@ +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() { |