fix test compile error

This commit is contained in:
vytskalt 2024-03-03 10:59:08 +02:00
parent ac4b148fea
commit 2a3509a2ea
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
package com.comphenix.protocol.wrappers;
import com.comphenix.protocol.BukkitInitialization;
import com.google.gson.JsonObject;
import com.google.gson.JsonElement;
import net.kyori.adventure.text.event.ClickEvent;
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.format.Style;
@ -24,7 +24,7 @@ public class WrappedComponentStyleTest {
public void testComponentStyle() {
ChatModifier style = ChatModifier.a.b(EnumChatFormat.m).a(true);
WrappedComponentStyle wrapped = new WrappedComponentStyle(style);
JsonObject json = wrapped.getJson();
JsonElement json = wrapped.getJson();
assertEquals("{\"color\":\"red\",\"bold\":true}", json.toString());
assertEquals(style, WrappedComponentStyle.fromJson(json).getHandle());
}