Skip to content

Commit 06be2cc

Browse files
committed
✅ Fix unit test failure caused by mini message serialization
1 parent 8973571 commit 06be2cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

core/src/test/java/net/transferproxy/util/test/TestGenerationUtil.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
public final class TestGenerationUtil {
3434

35+
private static final MiniMessage MINI_MESSAGE = MiniMessage.builder().emitVirtuals(false).build();
36+
3537
private TestGenerationUtil() throws IllegalAccessException {
3638
throw new IllegalAccessException("You cannot instantiate a utility class");
3739
}
@@ -54,8 +56,7 @@ public static BinaryTag generateComplexCompoundTag() {
5456
}
5557

5658
public static Component generateComplexComponent() {
57-
return MiniMessage.miniMessage()
58-
.deserialize("<color:#FF5555>This is a <color:#55FF55>test! <rainbow:!2>||||||||||||||||||||||||</rainbow>");
59+
return MINI_MESSAGE.deserialize("<color:#FF5555>This is a <color:#55FF55>test! <rainbow:!2>||||||||||||||||||||||||</rainbow>");
5960
}
6061

6162
}

0 commit comments

Comments
 (0)